๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

PowerShell: Automating Administrative Tasks: Automating Administrative Tasks: The art of automating and managing Windows environments

โœ Scribed by Michael Shepard, Chendrayan Venkatesan, Sherif Talaat, Brenton J.W. Blawat


Publisher
Packt Publishing
Year
2017
Tongue
English
Leaves
737
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Learn PowerShell from the inside out, right from basic scripting all the way to becoming a master at automating, managing, and maintaining your Windows environment

About This Book

  • Use proven best practices to optimize code and automate redundant tasks
  • Get to grips with PowerShell's advanced functions and effectively administer your system
  • Create a variety of PowerShell scripts to automate your environment

Who This Book Is For

If you are a system administrator who wants to become an expert in automating and managing your Windows environment, then this course is for you. Some basic understanding of PowerShell would be helpful.

What You Will Learn

  • Discover PowerShell commands and cmdlets and understand PowerShell formatting
  • Solve common problems using basic file input/output functions
  • Use .NET classes in Windows PowerShell and C# and manage Exchange Online
  • Use PowerShell in C# to manage Exchange Online and work with .NET classes in PowerShell
  • Automate LYNC clients, consuming client-side object models to administrate SharePoint Online
  • Optimize code through the use of functions, switches, and looping structures
  • Manage files, folders, and registries through the use of PowerShell
  • Discover best practices to manage Microsoft systems

In Detail

Are you tired of managing Windows administrative tasks manually and are looking to automate the entire process? If yes, then this is the right course for you.

This learning path starts your PowerShell journey and will help you automate the administration of the Windows operating system and applications that run on Windows. It will get you up and running with PowerShell, taking you from the basics of installation to writing scripts and performing web server automation. You will explore the PowerShell environment and discover how to use cmdlets, functions, and scripts to automate Windows systems.

The next installment of the course focuses on gaining concrete knowledge of Windows PowerShell scripting to perform professional-level scripting. The techniques here are packed with PowerShell scripts and sample C# code to automate tasks. You will use .NET classes in PowerShell and C# to manage Exchange Online.

In the final section, you will delve into real-world examples to learn how to simplify the management of your Windows environment. You will get to grips with PowerShell's advanced functions and how to most effectively administer your system.

This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products:

  • Getting Started with PowerShell by Michael Shepard
  • Windows PowerShell for .Net Developers Second Edition by Chendrayan Venkatesan and Sherif Talaat
  • Mastering Windows PowerShell Scripting by Brenton J.W. Blawat

Style and approach

This is a step-by-step course to help you effectively administer and maintain your development environment with PowerShell.

โœฆ Table of Contents


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


๐Ÿ“œ SIMILAR VOLUMES


Ultimate PowerShell Automation for Syste
โœ Prashanth Jayaram, Rajendra Gupta ๐Ÿ“‚ Library ๐Ÿ“… 2024 ๐Ÿ› Orange Education Pvt. Ltd. ๐ŸŒ English

Power Up Your Automation and Administration with PowerShell Book Description Unlock the power of PowerShell with this comprehensive guide, designed as your ultimate companion, the book is structured into three parts, each focusing on different aspects of PowerShell. You'll start with the basics

Windows Server Automation with PowerShel
โœ Thomas Lee ๐Ÿ“‚ Library ๐Ÿ“… 2021 ๐Ÿ› Packt Publishing ๐ŸŒ English

<p><b>Over 100 PowerShell recipes for working more effectively with Windows Server 2022/2019</b></p><h4>Key Features</h4><ul><li>Develop a holistic understanding of Windows Server 2022/2019 with PowerShell 7.1</li><li>Learn best practices for PowerShell scripting to automate common tasks and manage

Mastering Windows PowerShell Scripting o
โœ Blawat, Brenton J. W.;Dent, Chris ๐Ÿ“‚ Library ๐Ÿ“… 2017 ๐Ÿ› Packt Publishing ๐ŸŒ English

"Comma"--"Format" -- "Increment and decrement" -- "Join" -- "Summary" -- "Chapter 6: Variables, Arrays, and Hashtables " -- "Naming and creating variables" -- "Variable commands" -- "Clear-Variable" -- "Get-Variable" -- "New-Variable" -- "Remove-Variable" -- "Set-Variable" -- "Variable scope" -- "Lo