Question Locked

removing local profiles off the pc

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
i require a solution, where i can delete the local student profiles on pc's, BUT the students do not have roaming profiles so i cannot enable the delete roaming cache in Group policy. May be a script run on specific gropus which can delete the local profiles of students on selected PC'S.but i do not know how to creat scripts(VB scripts) any help or suggestion will be highly appreciated.

6 replies

by symon.l

im assuming you have shares on these PC's?

Think you might have to do it manually for each pc but at least its remote.

\\pcname\C$\documents and settings\

And delete the local profiles, obviously the person cant be logged in at the time.

Hope this helps.

by paul.cook

In the Win2K3 Resource kit is a utility called Delprof which you can use to delete Cached Roaming Profiles AND Local Profiles.

It can be run locally or remotely.

One thing...I'm pretty sure it will delete profiles for local users as well (e.g. Administrator)

by arifeenmcse

Paul,

i can run delprof.exe, but will i be able to run it remotely? if i do not have share on remote pc's. I tried that but i was not able to connect to the pc's with no c:drive shared.

by arifeenmcse

Thanks Simon,
First of all, we do not have share on C drive. Secondly i want to remove local student profiless off the pc's, and student do not have roaming profiles, i was wondering if you can help me with a script to be deployed using Group policy Management to remove selected profiles off the pc's

by paul.cook

You should be able to run this on a server with a user that has administrative rights on the local machine
e.g.

delprof /Q /I /c:\\Wkstn01 /D:3

-------------------------
Syntax
DELPROF [options]

Key
/Q Quiet, no confirmation.
/I Ignore errors and continue deleting.
/P Prompts for confirmation before deleting each profile.
/C:\\computer_name
Delete profiles on a remote computer.
/D:Number_of_days
Only delete profiles that have been inactive for 'X' Number of days (or greater)
/R
Delete roaming profile cache only ##

This discussion is closed to new replies.