A Windows PowerShell Tutorial
My mission is to two fold. Firstly, to encourage a new generation of script writers to learn PowerShell; secondly I want to provide experienced scripters with a bank of example scripts so that they can convert to PowerShell.
To newbies I want to say: ‘It really will be easy to get started. You will be surprised by how many tasks on your Windows computer benefit from a PowerShell script’. To the experienced scripters I say, ‘I want to build a reference library for that moment when you have forgotten the syntax for a particular PowerShell command’.
Windows PowerShell Tutorial Sections
- PowerShell Examples
- Section Dedicated to PowerShell Techniques
- Section Dedicated to Syntax
- Section for PowerShell Real-life Tasks
- New features of PowerShell v 2.0
- New features of PowerShell v 3.0
- PowerShell 4.0
- PowerShell 5.0 New Features
To help you discover the benefits of PowerShell, I will not only provide real life tasks, but also I will add learning points. One of my greatest joys is when you modify the code in my PowerShell tutorials to fit your situation.
In 2013 Microsoft released PowerShell 4.0. To check which version you have, launch PowerShell and then type these five characters:
$Host
Alternatively, try $PSVersionTable.
Individual PowerShell Tutorials
- PowerShell Introduction
- PowerShell on Windows 8
- PowerShell Dreams
- .NET Framework
- 3 Key Commands
- Add-Content
- Alias
- Active Directory
- Brackets () {} and []
- Cmdlets
- Cmdlets Built-In
- Com Objects
- -Com Shell.Application
- Compare-Object
- Comparison Operators: -eq, -gt
- Compare-Object Registry
- Conditional Operators: -Like -Match – contains
- Drives
- Eventlog
- Export-CSV
- Files – Listing
- Format-Table (FT)
- Format-List (FL)
- Functions Intro
- -f Format Operator
- Get-Acl Permissions
- Get-ChildItem (gci)
- Get-Command
- Get-Credential
- Get-History
- Get-Member
- Get-Date
- Group-Object
- If Statement (also ElseIf)
- Ipconfig – The PowerShell way
- Import-CSV
- Import-Module
- Invoke-Command
- Invoke-Expression
- -Match and -NotMatch
®