Skip to content

Commit

Permalink
Merge pull request #6 from xoap-io/dev
Browse files Browse the repository at this point in the history
fix: multiple fixes in schema and configurations
  • Loading branch information
ssokolic authored Jul 27, 2023
2 parents 2dbb8f7 + 3b3d1ed commit dda5409
Show file tree
Hide file tree
Showing 12 changed files with 3,351 additions and 3,379 deletions.
2 changes: 1 addition & 1 deletion DSCResources/Bitlocker/Bitlocker.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Bitlocker.schema.psm1'

# Version number of this module.
ModuleVersion = '1.0.0'
ModuleVersion = '0.0.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
196 changes: 96 additions & 100 deletions DSCResources/Bitlocker/Bitlocker.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -35,112 +35,108 @@ https://gallery.technet.microsoft.com/scriptcenter/PowerShellAccessControl-d3be7
https://www.powershellgallery.com/packages/WindowsDefender/1.0.0.4
#>

Configuration Windows_11_v22H2_Security_Baseline_Bitlocker
Configuration Bitlocker
{

Import-DSCResource -ModuleName 'PSDesiredStateConfiguration'
Import-DSCResource -ModuleName 'GPRegistryPolicyDsc' -ModuleVersion '1.2.0'
Import-DSCResource -ModuleName 'AuditPolicyDSC' -ModuleVersion '1.4.0.0'
Import-DSCResource -ModuleName 'SecurityPolicyDSC' -ModuleVersion '2.10.0.0'

Node Windows_11_v22H2_Security_Baseline_Bitlocker
{
RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\FVE\UseEnhancedPin'
{
ValueName = 'UseEnhancedPin'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\FVE'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\FVE\RDVDenyCrossOrg'
{
ValueName = 'RDVDenyCrossOrg'
ValueData = 0
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\FVE'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\FVE\DisableExternalDMAUnderLock'
{
ValueName = 'DisableExternalDMAUnderLock'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\FVE'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab\DCSettingIndex'
{
ValueName = 'DCSettingIndex'
ValueData = 0
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab\ACSettingIndex'
{
ValueName = 'ACSettingIndex'
ValueData = 0
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
{
ValueName = 'DenyDeviceClasses'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClassesRetroactive'
{
ValueName = 'DenyDeviceClassesRetroactive'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions'
}

<#RegistryPolicyFile 'DELVALS_\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
{
ValueName = ''
Exclusive = $True
ValueData = ''
Ensure = 'Present'
ValueType = 'String'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
}#>

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses\1'
{
ValueName = '1'
ValueData = '{d48179be-ec20-11d1-b6b8-00c04fa372a7}'
ValueType = 'String'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
}

RegistryPolicyFile 'Registry(POL): HKLM:\System\CurrentControlSet\Policies\Microsoft\FVE\RDVDenyWriteAccess'
{
ValueName = 'RDVDenyWriteAccess'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\System\CurrentControlSet\Policies\Microsoft\FVE'
}

RefreshRegistryPolicy 'ActivateClientSideExtension'
{
IsSingleInstance = 'Yes'
}
RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\FVE\UseEnhancedPin'
{
ValueName = 'UseEnhancedPin'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\FVE'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\FVE\RDVDenyCrossOrg'
{
ValueName = 'RDVDenyCrossOrg'
ValueData = 0
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\FVE'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\FVE\DisableExternalDMAUnderLock'
{
ValueName = 'DisableExternalDMAUnderLock'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\FVE'
}
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab\DCSettingIndex'
{
ValueName = 'DCSettingIndex'
ValueData = 0
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab\ACSettingIndex'
{
ValueName = 'ACSettingIndex'
ValueData = 0
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
{
ValueName = 'DenyDeviceClasses'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions'
}

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClassesRetroactive'
{
ValueName = 'DenyDeviceClassesRetroactive'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions'
}

<#RegistryPolicyFile 'DELVALS_\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
{
ValueName = ''
Exclusive = $True
ValueData = ''
Ensure = 'Present'
ValueType = 'String'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
}#>

RegistryPolicyFile 'Registry(POL): HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses\1'
{
ValueName = '1'
ValueData = '{d48179be-ec20-11d1-b6b8-00c04fa372a7}'
ValueType = 'String'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses'
}

RegistryPolicyFile 'Registry(POL): HKLM:\System\CurrentControlSet\Policies\Microsoft\FVE\RDVDenyWriteAccess'
{
ValueName = 'RDVDenyWriteAccess'
ValueData = 1
ValueType = 'Dword'
TargetType = 'ComputerConfiguration'
Key = 'HKLM:\System\CurrentControlSet\Policies\Microsoft\FVE'
}

RefreshRegistryPolicy 'ActivateClientSideExtension'
{
IsSingleInstance = 'Yes'
}
}
2 changes: 1 addition & 1 deletion DSCResources/Computer/Computer.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Computer.schema.psm1'

# Version number of this module.
ModuleVersion = '1.0.0'
ModuleVersion = '0.0.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
Loading

0 comments on commit dda5409

Please sign in to comment.