Advertisement
mariussm

Create PowerShell profile folder and file

Oct 16th, 2014
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mkdir (Split-Path $profile) -ErrorAction SilentlyContinue;
  2. if(!(Test-Path $profile))
  3. {
  4.     Set-Content -Path $profile -Value ""
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement