mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 07:07:21 +00:00
gpo fix to print spooler
This commit is contained in:
1 parent
0e71609b40
commit
e71459defe
1 file changed
+2
-2
@@ -178,7 +178,7 @@ Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "RestrictAnonymous" -key
|
||||
Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "DisableDomainCreds" -key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" -Value 1 -Type DWord
|
||||
Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "UseMachineId " -key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" -Value 1 -Type DWord
|
||||
Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "LmCompatibilityLevel " -key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" -Value 5 -Type DWord
|
||||
Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "Start" -key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler" -Value 4 -Type DWord
|
||||
Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "Start" -key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler" -Value 2 -Type DWord
|
||||
Set-GPRegistryValue -Name "RDS WB hardening" -ValueName "LogDroppedPackets" -key "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile\Logging" -Value 1 -Type DWord
|
||||
|
||||
|
||||
@@ -238,4 +238,4 @@ set-addefaultDomainPolicy -identity $domainid -complexityEnabled $true -lockoutd
|
||||
$domainguestid2 = $domainid + "_" + "guest"
|
||||
get-aduser -identity 'guest' | Rename-AdObject -NewName $domainguestid2
|
||||
|
||||
Write-Output "THIS SCRIPT ACTUALLY RAN" | Out-File -FilePath 'C:\eidf\HardenScript.txt'
|
||||
Write-Output "THIS SCRIPT ACTUALLY RAN" | Out-File -FilePath 'C:\eidf\HardenScript.txt'
|
||||
Reference in new issue
Block a user