File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,21 +101,21 @@ function Protect-Dir
101101 )
102102
103103 Write-Log " Protect-Dir: Grant Administrator"
104- cmd.exe / c icacls.exe $path / T / grant:r Administrators:F
104+ cmd.exe / c icacls.exe $path / T / L / grant:r Administrators:F
105105 if ($LASTEXITCODE -ne 0 )
106106 {
107107 Throw " Error setting ACL for $path exited with $LASTEXITCODE "
108108 }
109109
110110 Write-Log " Protect-Dir: Remove BUILTIN\Users"
111- cmd.exe / c icacls.exe $path / T / remove:g " BUILTIN\Users"
111+ cmd.exe / c icacls.exe $path / T / L / remove:g " BUILTIN\Users"
112112 if ($LASTEXITCODE -ne 0 )
113113 {
114114 Throw " Error setting ACL for $path exited with $LASTEXITCODE "
115115 }
116116
117117 Write-Log " Protect-Dir: Remove BUILTIN\IIS_IUSRS"
118- cmd.exe / c icacls.exe $path / T / remove:g " BUILTIN\IIS_IUSRS"
118+ cmd.exe / c icacls.exe $path / T / L / remove:g " BUILTIN\IIS_IUSRS"
119119 if ($LASTEXITCODE -ne 0 )
120120 {
121121 Throw " Error setting ACL for $path exited with $LASTEXITCODE "
You can’t perform that action at this time.
0 commit comments