Skip to content

Commit b62630b

Browse files
Resolve Issue #31
1 parent 50be8ec commit b62630b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Agent/Lib/InstallAgent-Core.psm1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,12 +1136,20 @@ function ValidateExecution {
11361136
$Config.NetworkFolder, $Config.InstallFolder
11371137
) -join '\'
11381138
}
1139+
"Sysvol" = @{
1140+
"Path" = @(
1141+
"\", $Device.FQDN, "sysvol" , $Device.FQDN, "scripts",
1142+
$Config.NetworkFolder, $Config.InstallFolder
1143+
) -join '\'
1144+
}
11391145
}
11401146
### Determine Execution Mode
11411147
$Script.Execution.ScriptMode =
11421148
switch ($Install.Sources.Demand.Path) {
11431149
$Install.Sources.Network.Path
11441150
{ $SC.ExecutionMode.B; break }
1151+
$Install.Sources.Sysvol.Path
1152+
{ $SC.ExecutionMode.B; break }
11451153
Default
11461154
{ $SC.ExecutionMode.A; break }
11471155
}
@@ -1455,7 +1463,8 @@ function QueryServices {
14551463
) -notcontains $false
14561464
)
14571465
{ $true } else { $false }
1458-
} else {
1466+
}
1467+
else {
14591468
$Agent.Health.ServicesBehaviorCorrect = $true
14601469
}
14611470
# Agent Services Running

0 commit comments

Comments
 (0)