-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSFT Windows 10 1903 and Server 1903 Member Server - Credential Guard.ps1
67 lines (54 loc) · 1.95 KB
/
MSFT Windows 10 1903 and Server 1903 Member Server - Credential Guard.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Configuration DSCFromGPO
{
Import-DSCResource -ModuleName 'PSDesiredStateConfiguration'
Import-DSCResource -ModuleName 'AuditPolicyDSC'
Import-DSCResource -ModuleName 'SecurityPolicyDSC'
# Module Not Found: Import-DSCResource -ModuleName 'PowerShellAccessControl'
Node localhost
{
Registry 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard\EnableVirtualizationBasedSecurity'
{
ValueName = 'EnableVirtualizationBasedSecurity'
ValueType = 'Dword'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
ValueData = 1
}
Registry 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard\RequirePlatformSecurityFeatures'
{
ValueName = 'RequirePlatformSecurityFeatures'
ValueType = 'Dword'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
ValueData = 1
}
Registry 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard\HypervisorEnforcedCodeIntegrity'
{
ValueName = 'HypervisorEnforcedCodeIntegrity'
ValueType = 'Dword'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
ValueData = 1
}
Registry 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard\HVCIMATRequired'
{
ValueName = 'HVCIMATRequired'
ValueType = 'Dword'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
ValueData = 0
}
Registry 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard\LsaCfgFlags'
{
ValueName = 'LsaCfgFlags'
ValueType = 'Dword'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
ValueData = 1
}
Registry 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard\ConfigureSystemGuardLaunch'
{
ValueName = 'ConfigureSystemGuardLaunch'
ValueType = 'Dword'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
ValueData = 1
}
}
}
DSCFromGPO -OutputPath '.\DSCConfigs'