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 9 quick reference

To

Do this

Determine the existence of a Windows PowerShell profile

Use the Test-Path cmdlet and supply the $profile automatic variable.

Create a Windows PowerShell profile

Use the New-Item cmdlet and supply a value of file for the item type. Use the -force switch to avoid prompting.

Add items to a Windows PowerShell profile that all users will use

Use the All Users, All Hosts profile.

Obtain the path to the All Users, All Hosts profile

Use the $profile automatic variable and choose the AllUsersAllHosts property.

Add items to a Windows PowerShell profile that the current user will use

Use the Current User, All Hosts profile.

Obtain the path to the Current User, All Hosts profile

Use the $profile automatic variable ...

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