Skip to content

Instantly share code, notes, and snippets.

@lordlinus
Last active October 7, 2019 09:43
Show Gist options
  • Save lordlinus/9b4f9156ed8c1bf2a34834bc65f3692f to your computer and use it in GitHub Desktop.
Save lordlinus/9b4f9156ed8c1bf2a34834bc65f3692f to your computer and use it in GitHub Desktop.
Set-Location "c:\aws\download"
Start-Process -FilePath 'c:\aws\download\anaconda3.exe' -ArgumentList '/S /InstallationType=AllUsers /RegisterPython=1 /AddToPath=1' -Wait
del c:\aws\download\anaconda3.exe
$acl = Get-Acl 'C:\ProgramData\Anaconda3'
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule ("Users", "Write", "ObjectInherit,ContainerInherit","None","Allow")
$acl.SetAccessRule($rule)
Set-Acl 'C:\ProgramData\Anaconda3' $acl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment