Selective delete of profile using VBscript
Posted on 2005-03-18
Hi, I have a domain comprising of a mixture of W2k professional SP4 machines and WXP Professional SP2 machines. All of these have a lot of unwanted local profiles on which it takes my colleagues and I a few days to delete.
Can anyone give me a hand writing a vbscript that will delete all of the local profiles from these workstations except for a select few. E.g:
Is it possible to do a wild card for the administrator profile because there a lot of them e.g. administrator.001, administrator.bramcote etc. Can i just put administrator* that would protect all of these accounts?
Many thanks in advance.