7
2
9
0
This script fixes the windows CIS Benchmark check 2.3.1.5: "Configure 'Accounts: Rename guest account'."
This script fixes the windows CIS Benchmark check 2.3.1.1: "Ensure 'Accounts: Block Microsoft accounts' is set to 'Users can't add or log on with Microsoft accounts'."
This script fixes the windows CIS Benchmark check 1.2.4: "Ensure 'Reset account lockout counter after' is set to '15 or more minute(s)'."
This script fixes the windows CIS Benchmark check 1.1.3: "Ensure 'Minimum password age' is set to '1 or more day(s)'."
The script first checks if it is running with administrative privileges. It then attempts to set the minimum password age using the net accounts command. After setting, it verifies the change by parsing the output of net accounts and checks if the age is 1 or more days. This addresses the CIS check for 'Minimum password age'.
MinPasswordAgeDays Optional parameter to specify the minimum password age in days. Must be an integer greater than or equal to 1. Defaults to 1.
.\Set-MinPasswordAge.ps1Sets and verifies the minimum password age to 1 day..\Set-MinPasswordAge.ps1 -MinPasswordAgeDays 5Sets and verifies the minimum password age to 5 days.This script fixes the windows CIS Benchmark check 1.1.1: "Ensure 'Enforce password history' is set to '24 or more password(s)'."
This script fixes the windows CIS Benchmark check 5.31: "Ensure 'UPnP Device Host (upnphost)' is set to 'Disabled'."
This script fixes the windows CIS Benchmark check 18.1.3: "Ensure 'Allow Online Tips' is set to 'Disabled'."
This script fixes the windows CIS Benchmark check 5.33: "Ensure 'Windows Error Reporting Service (WerSvc)' is set to 'Disabled'."
This script fixes the windows CIS Benchmark check 5.17: "Ensure 'Print Spooler (Spooler)' is set to 'Disabled'."
This script fixes the windows CIS Benchmark check 2.3.9.3: "Ensure 'Microsoft network server: Digitally sign communications (if client agrees)' is set to 'Enabled'."