Skip to content

Commit 5eeb143

Browse files
Resolved #31b
1 parent b62630b commit 5eeb143

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Agent/Lib/InstallAgent-Core.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,9 @@ function ValidateExecution {
11471147
$Script.Execution.ScriptMode =
11481148
switch ($Install.Sources.Demand.Path) {
11491149
$Install.Sources.Network.Path
1150-
{ $SC.ExecutionMode.B; break }
1150+
{ if ([Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) { $SC.ExecutionMode.B } else { $SC.ExecutionMode.A }; break }
11511151
$Install.Sources.Sysvol.Path
1152-
{ $SC.ExecutionMode.B; break }
1152+
{ if ([Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) { $SC.ExecutionMode.B } else { $SC.ExecutionMode.A }; break }
11531153
Default
11541154
{ $SC.ExecutionMode.A; break }
11551155
}

0 commit comments

Comments
 (0)