O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11 quick reference

To

Do this

Simplify connecting to WMI while using default security permissions

Use the Get-WmiObject cmdlet.

Control security when making a remote connection

Specify the impersonation levels in your script.

Allow a script to use the credentials of the person launching the script

Use the impersonate impersonation level.

Allow a script to load a driver

Use the loadDriver privilege.

Control security when making a remote connection

Specify the impersonation levels in your script.

Get rid of system properties when printing out all properties of a WMI class

Use the Format-List cmdlet and specify that the -property argument must be in the range of [a-z]*.

Get the current date and time

Use the Get-Date cmdlet.

Subtract two ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required