Scripts
Here are some scripts that I’ve written under the years. All scripts come “as they are” and some might need some modification to work in your environment.
Please note that scripts have the ability to quickly fix a tedious task. Or destroy something very quick. If you’re unsure of what they do, test in a lab environment first. Consider that the disclaimer…
Copy the script and save it as noted in the header of the script. (The ending is the important part, for example .vbs)
—
GetUsersfromADCreateHomefolder - Will select users from a specifik OU or the entire AD and create folders for all users and set NTFS-rights.
AddPrinters - Adds network printers, preferably deployed as a login script with a group policy.
ExportDisabledUsers - Exports disabled user accounts from Active Directory. Don’t forget to change domain.
PasswordNeverExpires - Exports accounts whos passwords never expire.
PowershellWrapper - Run Powershell-scripts from vb-script.