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 vulnerability CVE-2023-48052 affecting httpie version 3.2.2 on windows
This PowerShell script writes a christmas tree to the terminal.
PS> ./write-xmas-tree.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script writes the given text in uppercase letters.
text Specifies the text to write (ask user by default)
PS> ./write-uppercase.ps1 "Hello World"HELLO WORLDAuthor: Markus Fleschutz | License: CC0
This PowerShell script writes the given text with the typewriter effect.
text Specifies the text to write (sample text by default)
speed Specifies the speed (200 ms by default)
PS> ./write-typewriter.ps1 "Hello World"Author: Markus Fleschutz | License: CC0
This PowerShell script queries the current time and writes it in US format to the console.
PS> ./write-time.ps1🕒7:20 PMAuthor: Markus Fleschutz | License: CC0
This PowerShell script writes sine curves.
PS> ./write-sine-curvesAuthor: Markus Fleschutz | License: CC0