Skip to content

Instantly share code, notes, and snippets.

@breischl
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breischl/531b4ada2a0874be58e1 to your computer and use it in GitHub Desktop.
Save breischl/531b4ada2a0874be58e1 to your computer and use it in GitHub Desktop.
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
cinst sublimetext2
cinst notepadplusplus
cinst webdeploy
if (!(Test-Path -Path L:\logs\ )) {
mkdir "L:\logs\"
$Acl = Get-Acl "L:\logs\"
$Ar = New-Object system.security.accesscontrol.filesystemaccessrule("NETWORK SERVICE","FullControl","Allow")
$Acl.SetAccessRule($Ar)
Set-Acl "L:\logs\" $Acl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment