Core PowerShell System Administrator Commands Instructor Guide
https://www.amazon.com/dp/B0G37JF928/
PowerShell is a powerful scripting language and command-line tool which provides several cmdlets for useful system administrator aspects. Therefore, this instructor guide covers common commands to utilize for a variety of systems based aspects. The commands can be utilized for personal, educational, or corporate usage. It is envisioned that the instructor utilizes the material from this guide via a demonstration type format.
Contents
Using This Instructor Guide
How to Use and Run Commands
ForEach-Object
Get-ChildItem Env:
Get-CimInstance Win32_OperatingSystem
Get-Command
Get-ComputerInfo Select
Get-Counter
Get-DnsClientServerAddress
Get-EventLog
Get-HotFix Select Description, HotFixID, InstalledOn
Get-ItemProperty -Path "HKLM:SoftwareMicrosoftWindowsCurrentVersion"
Get-LocalGroupMember -Group "Administrators"
Get-LocalUser
Get-LocalUser Select Name,Enabled,LastLogon
Get-LocalUser Where-Object
Get-LocalUser Where-Object
Get-NetAdapter Select-Object
Get-NetFirewallProfile Select
Get-NetFirewallRule Where-Object
Get-NetIPAddress Where-Object ($_.AddressFamily}
Get-NetIPAddress Where-Object
Get-NetTCPConnection Where-Object
Get-PhysicalDisk Select FriendlyName, MediaType
Get-Printer Select-Object
Get-Process Format-Table Name, CPU, ID
Get-Process Sort-Object CPU -Descending
Get-Process Where-Object
Get-Process Where-Object Stop-Process -Force
Get-PSDrive
Get-Service Where-Object
Get-Service Where-Object
Get-ScheduledTask Where-Object
Get-ScheduledTask Where-Object
Get-WmiObject Win32_BIOS Select
New-TimeSpan -Start
Net Share Where-Object
Test-NetConnection
About the Author
Notes