Random Powershell Scripts, if you find something you like please take it with you!
Install scripts for Intune
Easy script to put the drivers into a windows install
Cleans up folders from the file server when a user is removed from Active Directory. It won't delete them just moves them to a easy to see subfolder
Exports the drivers from the machine it's running on and saves it to Drivers_Serialnumber in the same location as the script is running from.
Finds Uninsall ID's for MSI installs
Reads the windows 10 license key and saves it to a USB drive (if setup) else it will be saved to the desktop.
Config: In the top of the script there are 2 variables that you can use to change it's function.
$serialnumber
Here you can save the USB drive where you want to save the output to. Nice i you need to do a lot of computers$path
Here you can set the output location of the script on the USB drive.
NOTE! When the $serialnumber
is not set correct it will save the file to the desktop and show all connected usb drives with the serial numbers