Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Create New PowerShell Profile for All Hosts

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles