Apply local lock policy during enrollment
This commit is contained in:
1 parent
fd051dee80
commit
ba2aca5c2a
12 files changed
+469
-7
No files matched your search
@@ -28,6 +28,14 @@ Describe 'Laboratorio wallpaper policy packaging and scope' {
|
||||
$policySource | Should Match 'local accounts such as \.\\ing'
|
||||
$policySource | Should Match 'DisableLockWorkstationForAllUsers = \$true'
|
||||
}
|
||||
It 'runs the local-profile lock restriction as LocalSystem at computer startup' {
|
||||
$policySource | Should Match 'Set-SguLocalProfileSecurityPolicies\.ps1'
|
||||
$policySource | Should Match 'Join-Path \$scriptsRoot ''scripts\.ini'''
|
||||
$policySource | Should Match 'Start-SguLocalProfileSecurityPolicies\.cmd'
|
||||
$policySource | Should Match '-ExecutionPolicy Bypass'
|
||||
$policySource | Should Match "RunsAs = 'LocalSystem'"
|
||||
$policySource | Should Match 'gPCMachineExtensionNames'
|
||||
}
|
||||
It 'reuses and backs up an existing GPO and verifies the result' {
|
||||
foreach ($command in @('Get-GPO', 'Backup-GPO', 'Set-GPLink', 'New-GPLink', 'Get-GPRegistryValue')) {
|
||||
$policySource | Should Match ([regex]::Escape($command))
|
||||
|
||||
Reference in new issue
Block a user