Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Last active May 30, 2018 10:55
Show Gist options
  • Save turboBasic/2e0ad1ac2c10c78aef9c9d5908e9485d to your computer and use it in GitHub Desktop.
Save turboBasic/2e0ad1ac2c10c78aef9c9d5908e9485d to your computer and use it in GitHub Desktop.
[New-PowershellProfiles.ps1] Create all #powershell profiles #configureWindows
$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