Link to home
Start Free TrialLog in
Avatar of samiam41
samiam41Flag for United States of America

asked on

Delete user profiles Windows 7

Hey Experts.  I've tried putting together a PS script to delete user profiles that are not related to the default user accounts (local admin, etc).  The environment is Win 7 Enterprise and will be applied to the training room computers which have been getting killed by user profiles eating up drive space.  Your time/help is appreciated.
Avatar of Brian Murphy
Brian Murphy
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of samiam41


Brilliant work!  Thank you for your help!
Just to add, one other way of doing it (which we have used successfully for many years) is to put a particular AD user group into the lab pc's local 'Guests' group ..... guest users profiles get deleted on logout ...
i.e on the client side run 'net localgroup guests domain\usergroup /add'

note: there might be some extra restrictions that are enforced onto the guests group ... but never caused any problems here ...

(edit) ... apologies, please ignore ...... hadn't realized issue is already solved ....
All good PeeterB!  I appreciate the information.