samiam41
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 ....
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 ....
ASKER
All good PeeterB! I appreciate the information.
ASKER