We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62630b commit 5eeb143Copy full SHA for 5eeb143
1 file changed
Agent/Lib/InstallAgent-Core.psm1
@@ -1147,9 +1147,9 @@ function ValidateExecution {
1147
$Script.Execution.ScriptMode =
1148
switch ($Install.Sources.Demand.Path) {
1149
$Install.Sources.Network.Path
1150
- { $SC.ExecutionMode.B; break }
+ { if ([Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) { $SC.ExecutionMode.B } else { $SC.ExecutionMode.A }; break }
1151
$Install.Sources.Sysvol.Path
1152
1153
Default
1154
{ $SC.ExecutionMode.A; break }
1155
}
0 commit comments