- admin
- sep, 16, 2013
- Ikke kategoriseret, IT Artikler, Office3365, Powershell
- Kommentarer lukket til User Profile Cleaning Script for Windows 7 – Version 3.1
Skal du have renset bruger profiler på dine klient maskiner så er her et super godt script hvor du har muligheden for at fravælge bestemte profiler i scriptet.
Beskrivelse:
Here is a batch file for cleaning user profiles in Windows 7. This was much easier in XP, but in Windows 7, you need to also clear out the registry values or you will get a Profile error on the next login by the cleared user. I couldn’t find any good ones online that met my needs perfectly, so I made my own.
One of the biggest criteria that I had was that I wanted to specify users for the script to leave alone. It seemed like anyone that made a script for profile deletion wiped the ground clean and I wanted to be able to retain users of my choosing. This is especially helpful in lab or library situations, to set this script as a logoff hook. There are two places that you would need to enter accounts to exclude from the wipe – one in the directory clean and one in the registry clean, just look for the commented areas below. Enjoy!
Thanks Mike!