-
-
Save rjmii/bd7c3f5861196fdd0db1a05c2dd1a79c to your computer and use it in GitHub Desktop.
Set permission of file equivalent to chmod 400 on Windows.
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
$path = ".\.vagrant\machines\default\hyperv\private_key" | |
icacls.exe $path /reset | |
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
icacls.exe $path /inheritance:r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment