February 2013
Intermediate to advanced
632 pages
20h 20m
English
This chapter covers
A great many PowerShell commands have a –credential parameter. You can view the list by typing
Get-Help * -Parameter Credential
When you use this parameter, it generally allows the command to operate with the username and password you provide rather than the one you used to log on to the shell. It’s a great way to enable the principle of least privilege: Do as much work as you can with unprivileged credentials, but when more privilege is required, specify alternative credentials for that purpose. You’ll need to run PowerShell with elevated privileges (“Run as Administrator”) to complete ...