Consolidate laboratory network and client maintenance policies
This commit is contained in:
1 parent
bfa520dec8
commit
5cda541e3d
20 files changed
+534
-107
No files matched your search
@@ -4,6 +4,12 @@ param(
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
# Domain GPO owns repair once the migration has completed. Keep this check in
|
||||
# the old entry point too, so a cached bootstrap cannot undo a newer package.
|
||||
$consolidationKey = 'HKLM:\SOFTWARE\Policies\LaSalle\ClientMaintenance'
|
||||
if ((Get-ItemProperty $consolidationKey -Name ProviderManagedByGpo -ErrorAction SilentlyContinue).ProviderManagedByGpo -eq 1) {
|
||||
return
|
||||
}
|
||||
$configuration = Get-Content -LiteralPath $ConfigurationPath -Raw | ConvertFrom-Json
|
||||
$enrollmentRoot = Split-Path $ConfigurationPath -Parent
|
||||
$testScript = Join-Path $enrollmentRoot 'Test-SguClientEnrollment.ps1'
|
||||
|
||||
Reference in new issue
Block a user