This page contains tips and guides for common PowerShell
One-Liners and short scripts.
Document Creator:
todd walters
Basic PowerShell Starting Info
How to Install and Configure PowerShell
Basic PowerShell Starting Info
How to Install and Configure PowerShell
Add Snapin
·
add-pssnapin
Microsoft.Exchange.Management.PowerShell.Admin
·
add-pssnapin quest.activeroles.admanagement
·
add-PSSnapin VMware.VimAutomation.Core
Set Excecution
Policy
·
Run set-ExecutionPolicy UnRestricted
Show Entire Forest
·
Set-AdServerSettings -ViewEntireForest $True
Bind to Domain
·
connect-QADService -service domainname
- $pw = read-host "Enter password" -AsSecureString connect-QADService -service 'server.company.com' -ConnectionAccount 'company\administrator' -ConnectionPassword $pw
Test Dry Run
·
Use -whatif
Common PowerShell One-Liner Categories
No comments:
Post a Comment