Last active
May 30, 2018 10:55
-
-
Save turboBasic/2e0ad1ac2c10c78aef9c9d5908e9485d to your computer and use it in GitHub Desktop.
[New-PowershellProfiles.ps1] Create all #powershell profiles #configureWindows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$profile | | |
Get-Member -memberType NoteProperty | | |
ForEach-Object { | |
if (Test-Path $profile.($_.Name)) { | |
Return | |
} | |
$args = @{ | |
path = $profile.($_.Name) | |
itemType = 'File' | |
force = $true | |
errorAction = 'SilentlyContinue' | |
} | |
New-Item @args -value @" | |
# | |
# profile for $($_.Name) | |
# | |
# | |
# | |
"@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment