Last active
October 7, 2019 09:43
-
-
Save lordlinus/9b4f9156ed8c1bf2a34834bc65f3692f to your computer and use it in GitHub Desktop.
This file contains 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
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