
PowerShell: Automating Administrative Tasks
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Persons
Michael Shepard has been working with computers since the early '80s, starting with an Apple II in school and a Commodore 64 at home. He started working in the IT industry in 1989 and has been working full-time since 1997. He has been working at Jack Henry & Associates, Inc. since 2000. His focus has changed over the years from being a database application developer to a DBA, an application admin, and is now a solutions architect. In his years as a DBA, he found PowerShell to be a critical component in creating the automation required to keep up with a growing set of servers and applications. He is active in the PowerShell community at Stack Overflow and projects at CodePlex. He has been blogging about PowerShell since 2009 at http://powershellstation.com.Venkatesan Chendrayan :
Chendrayan Venkatesan (Chen V) is a SharePoint IT Professional who has worked for the Information, Computer and Technology industry since 2005. Chen V started his career as Windows XP technical support engineer and became a SharePoint IT Pro in the year 2007. He mainly focuses on automating Microsoft Technologies such as SharePoint, LYNC, and Exchange. He was awarded the Microsoft Most Valuable Professional (MVP) in 2014. He speaks on Windows PowerShell, SharePoint Servers, Content Management, and IT Process Automations. He blogs in http://chen.about-powershell.com and is mentoring three IT professionals in PowerShell. He is a TechNet Wiki addict and has introduced Windows PowerShell as a category in the TechNet Wiki Guru award competition. To connect with Chen V you can visit his web site http://about-powershell.com or choose your favourite social media twitter @ChendrayanV or LinkedIn.Talaat Sherif :
Sherif Talaat is a young Computer Science addict. He holds many technology certificates. Sherif is working in the ICT industry since 2005; he used to work on Microsoft's core infrastructure platforms and solutions, with more focus on IT process automation and scripting techniques. Sherif is one of the early adopters of Windows PowerShell in the Middle East and Africa. He speaks about Windows PowerShell at technical events and user groups' gatherings. He is the founder of Egypt PowerShell User Group ( http://egpsug.org) and the author of the first and only Arabic PowerShell blog (http:arabianpowershell.wordpress.com). He has been awarded the Microsoft Mo Valuable Professional ( MVP) for PowerShell five times in a row since 2009. You may also catch him at sheriftalaat.com and follow him on Twitter @SherifTalaat. He is also the author of PowerShell 3.0: Advanced Administration Handbook, Packt Publishing.J.W. Blawat Brenton :
Brenton J.W. Blawat is an entrepreneur, strategic technical advisor, author, and enterprise architect, who has a passion for the procurement of technology in profit-based organizations. He is business-centric and technology-minded. Brenton has many years of experience in bridging the gap between technical staff and decision-makers in several organizations. He takes pride in his ability to effectively communicate with a diverse audience and provide strategic direction for large and small organizations alike. In 2013, Brenton authored his first book, PowerShell 3.0 WMI Starter, Packt Publishing. In March 2015, he authored his second book Mastering Windows PowerShell Scripting, Packt Publishing. Brenton currently works at CDW as an Enterprise Architect in strategic solutions and services. CDW is a leading multibrand technology solutions provider in the fields of business, government, education, and healthcare. A Fortune 500 company, it was founded in 1984 and employs approximately 7,200 coworkers. In 2016, the company generated net sales of more than $13.0 billion. His current specialisation sits on top of 15 years experience spread across (predominantly Microsoft) systems, (Juniper and Cisco) networking, and security.
Content
- Cover
- Copyright
- Credits
- Preface
- Table of Contents
- Module 1: Getting Started with PowerShell
- Chapter 1: First Steps
- Determining the installed PowerShell version
- Installing/upgrading PowerShell
- Starting a PowerShell session
- Simple PowerShell commands
- PowerShell aliases
- Summary
- For further reading
- Chapter 2: Building Blocks
- What can you do?
- The scripter's secret weapon - tab completion
- How does that work?
- Interpreting the cmdlet syntax
- Summary
- For further reading
- Chapter 3: Objects and PowerShell
- Objects all the way down
- What are members?
- The Get-Member cmdlet
- Where did these all come from?
- Summary
- For further reading
- Chapter 4: Life on the Assembly Line
- The pipeline as an assembly line
- Dealing with pipeline data
- Putting them together
- Summary
- For further reading
- Chapter 5: Formatting Output
- When does formatting occur?
- The rules of automatic formatting
- Cmdlets that control formatting
- The dangers of formatting
- Best practices of formatting
- Summary
- For further reading
- Chapter 6: Scripts
- Packaging commands
- Parameters add flexibility
- Adding some logic
- Profiles
- Summary
- For further reading
- Chapter 7: Functions
- Another kind of container
- Executing and calling functions
- Naming conventions
- Comment-based help
- Parameters revisited
- Default values for parameters
- Output
- Summary
- For further reading
- Chapter 8: Modules
- Packaging functions
- Script modules
- Where do modules live?
- Removing a module
- PowerShell module autoloading
- The #Requires statement
- Removing a module - take two
- Listing modules
- Summary
- Chapter 9: File I/O
- Reading and writing text files
- Working with CSV files
- PowerShell streams and redirection
- CLIXML - a special type of XML
- Summary
- For further reading
- Chapter 10: WMI and CIM
- What is WMI?
- Finding WMI classes
- Retrieving objects with Get-WMIObject
- Calling methods
- WMI and CIM
- CDXML modules
- Summary
- For further reading
- Chapter 11: Web Server Administration
- Installing IIS
- Verifying IIS
- The WebAdministration module
- Starting, stopping, and restarting IIS
- Creating virtual directories and web applications
- Working with application pools
- Summary
- For further reading
- Appendix: Next Steps
- Module 2: Windows PowerShell for .NET Developers - Second Edition
- Chapter 1: Getting Started with Windows PowerShell
- Scripting the cmdlet style
- Introducing Windows PowerShell
- Using an interactive shell
- Summary
- Chapter 2: Unleashing Development Skills Using Windows PowerShell 5.0
- Basics of WMI and CIM
- Working with XML and COM
- Exploring .NET objects
- Exploring Windows PowerShell 5.0
- Understanding PowerShell modules
- Script debugging
- Summary
- Chapter 3: Exploring Desired State Configuration
- Prerequisites
- Installing the WMF 5.0 April 2015 preview
- Imperative versus declarative programming
- Getting started with DSC
- Exploring Windows Remote Management and CIM
- Creating configuration scripts
- Types of deployment modes
- Summary
- Chapter 4: PowerShell and Web Technologies
- PowerShell Web Access
- Management OData IIS Extensions
- Exploring web requests
- Exploring web services
- Exploring the REST API
- Exploring JSON
- Summary
- Chapter 5: Exploring Application Programming Interface
- Exploring API using PowerShell
- The Lync 2013 client-side API
- Client-side object model - SharePoint Online
- Summary
- Module 3: Mastering Windows PowerShell Scripting
- Chapter 1: Variables, Arrays, and Hashes
- Variables
- Arrays
- Hashes
- Deciding the best container for your scripts
- Summary
- Chapter 2: Data Parsing and Manipulation
- String manipulation
- Number manipulation and parsing
- Date and time manipulation
- Forcing data types
- Piping variables
- Summary
- Chapter 3: Comparison Operators
- Comparison operator basics
- Equal and not equal comparison
- Greater than and less than comparison
- Contains, like, and match operators
- And / OR comparison operators
- Best practices for comparison operators
- Summary
- Chapter 4: Functions, Switches, and Loops Structures
- Functions
- Looping structures
- Switches
- Combining the use of functions, switches, and loops
- Best practices for functions, switches, and loops
- Summary
- Chapter 5: Regular Expressions
- Getting started with regular expressions
- Regular expression grouping constructs and ranges
- Regular expression quantifiers
- Regular expression anchors
- Regular expressions examples
- Summary
- Chapter 6: Error and Exception Handling and Testing Code
- Error and exception handling - parameters
- Error and exception handling - Try/Catch
- Error and exception handling - legacy exception handling
- Methodologies for testing code
- Summary
- Chapter 7: Session-based Remote Management
- Utilizing CIM sessions
- Summary
- Chapter 8: Managing Files, Folders, and Registry Items
- Registry provider
- Creating files, folders, and registry items with PowerShell
- Adding named values to registry keys
- Verifying files, folders, and registry items
- Copying and moving files and folders
- Renaming files, folders, registry keys, and named values
- Deleting files, folders, registry keys, and named values
- Summary
- Chapter 9: File, Folder, and Registry Attributes, ACLs, and Properties
- Retrieving attributes and properties
- Viewing file and folder extended attributes
- Setting the mode and extended file and folder attributes
- Managing file, folder, and registry permissions
- Summary
- Chapter 10: Windows Management Instrumentation
- WMI structure
- Using WMI objects
- Searching for WMI classes
- Creating, modifying, and removing WMI property instances
- Invoking WMI class methods
- Summary
- Chapter 11: XML Manipulation
- XML file structure
- Summary
- Chapter 12: Managing Microsoft Systems with PowerShell
- Managing local users and groups
- Managing Windows services
- Managing Windows processes
- Installing Windows features and roles
- Summary
- Chapter 13: Automation of the Environment
- Invoking programs for automation
- Using desired state configuration
- Detecting and restoring drifting configurations
- Summary
- Chapter 14: Script Creation Best Practices and Conclusion
- Best practices for script management
- # commenting headers
- Best practices for script creation
- Best practices for software automation
- Summary
- Bibliography
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.