July 24th, 2015

PowerTip: Create New PowerShell Profile for All Hosts

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.