PowerTip: Create New PowerShell Profile for All Hosts

Doctor Scripto

Summary: Learn how to create a new Windows PowerShell current user profile for all hosts.

Hey, Scripting Guy! Question How can I easily create current user profile for all hosts that can be used in the Windows PowerShell console and
           the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Use the New-Item cmdlet to create a new file. To find the correct path, use the $profile automatic variable and
           choose the CurrentUserAllHosts property, for example:

New-Item -ItemType file -Force -Path $PROFILE.CurrentUserAllHosts

0 comments

Discussion is closed.

Feedback usabilla icon