After running an audit, it was discovered that some user account passwords on the domain were set to never expire. A few meetings later the team decided to change this setting across the board. Below is the script that will target an Organizational Unit (OU) and adjust the setting for the user accounts in it.
Tag Archives: Script
Below is a quick script to create a user account and password. If no username is typed the script will exit. If the input for for the username is “Exit” or “exit” the script will exit. When finished typing the username and password the script will show the output of the newly created user in
Below is a PowerShell script that will change the Hostname of a domain computer remotely. You will need to build a .csv file of computer’s Hostnames you wish to change with two columns: OldName and NewName NOTE: When making the .csv make sure you Save As a .csv. DO NOT create a .txt and change