Introduction to Windows PowerShell

Automate it. Now, where’s that script…
Warning: PowerShell is addictive

Windows PowerShell is an object-oriented automation engine and scripting language with an interactive command-line shell designed to help IT professionals configure systems and automate administrative tasks. You can find it in every modern Windows OS starting with Windows 2008R2.

Learning Windows PowerShell is like learning to use a universal multi-tool. In this eBook, we’ll walk you through PowerShell scripting basics, show you PowerShell commands and scripts for performing the most common administrative tasks, and explain how you can schedule your PowerShell scripts and commands.

So, let’s start learning PowerShell!


Table of Contents

PowerShell Scripting Basics

  1. Launching the PowerShell
  2. Preparing to Run PowerShell Scripts
  3. PowerShell Cmdlets
  4. PowerShell Comments and Documentation
  5. PowerShell Pipes and Pipeline

Active Directory Management Tasks with PowerShell

  1. Getting Started with Active Directory PowerShell
  2. Creating New User and Computer Accounts
  3. Joining a Computer to a Domain and Removing a Computer from a Domain
  4. Renaming a Computer
  5. Resetting a Computer Account
  6. Disabling User and Computer Accounts
  7. Deleting a Computer from Active Directory
  8. Creating and Deleting an Active Directory Group
  9. Adding Users and Computers to a Group
  10. Removing Users and Computers from a Group
  11. Moving Users and Computers to a New Organizational Unit

File System Management Tasks Using PowerShell

  1. Viewing Objects in a Directory
  2. Creating Files and Folders
  3. Deleting Files and Folders
  4. Copying Files and Folders
  5. Moving Files and Directories
  6. Renaming Files
  7. Setting File and Folder Permissions
  8. Removing User Permissions
  9. Enabling and Disabling Permissions Inheritance
  10. Changing File and Folder Ownership

Automating PowerShell Scripts

  1. Creating Scheduled Tasks with PowerShell Scripts
  2. Running PowerShell Scripts with Task Scheduler