Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Delete users profile with exception.

$
0
0

Hi Guys,

new guy here in line with scripting... would you be so kind to help me to acquire a single script to delete profiles. with below requirement?

1. script should not remove any profiles starting with letter x- and y-

2. script should not remove administrator

3. compatible in 2008 r2 & windows 2003.

4. script should log-off any logged in user before removing profiles.

5. script should clean the profile entries in registry

6. have the script create a log file of the deleted profiles.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>