Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to remove profiles from the network when users leave the company 1

Status
Not open for further replies.

jewel464g

Technical User
Jul 18, 2001
198
US
I have a problem that I'm sure other people have come across. I work in a hospital. We have numerous PCs here. The nurses rotate around to whatever section needs them, so they will have multiple profiles throughout the hosptial. Being a military hospital some of our docs/nurses are TDY (sent somewhere else for a while) or deployed for different periods of time. So I can't use Microsoft's tool to remove profiles that haven't been used in a while. Because those people will be back and will be angry if I've deleted their profiles. So I need a tool or something that will allow me to remove user profiles based on the user's username. Anyone got any ideas?

When faced with a decision, always ask, 'Which would be the most fun?'
 
Do you want to remove the profile to save space? I would guess you are a domain, correct?
 
Correct, need to remove them to save space, some of our PCs only have 20 gig hard drives and it isn't in the budget to upgrade them. We do not have roaming profiles and it's not in my power to set that up. Military powers that be decision.

When faced with a decision, always ask, 'Which would be the most fun?'
 
That is the tool that I mentioned in my first post, from my understanding from this site
I can't give it a username to search the network for, which is what I need. For instance John Doe is a user on our network, his username is john.doe. He quits his job. Now I need to search the network for all profiles named john.doe and remove them. Unless I missed something that tool won't do that for me. Thanks.

When faced with a decision, always ask, 'Which would be the most fun?'
 
couldnt you send out a directory delete script

try to delete the doc&settings\user.name /hidden.. whatever

if it doesnt exist then it wont be deleted .. if it does.. it'll be gone

*shrug*
 
the system would see the user profile as still on the system even though the profile folder was deleted on c:\documents and settings\%username%

The profile will still show up in the profile manager and with the folder being gone you won't be able to remove the profile from the profile manager without it erroring out.

you basically are leaving a ghost in the system

When faced with a decision, always ask, 'Which would be the most fun?'
 
The profile list is stored in the registry at

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
(Note - "Windows NT", not "Windows")

The next level of keys are the GUIDs for the users. Under each GUID is a value for ProfileImagePath. Removing this in combination with deleting the profile directory will do what you want.

You would need a script to do this automatically. If you were up for some manual work, you could just identify which PCs had the profile and then go to those (remote registry or physical visit) to remove the reg key.
 
I want to be certain of what you want to do.
So I can't use Microsoft's tool to remove profiles that haven't been used in a while. Because those people will be back and will be angry if I've deleted their profiles. So I need a tool or something that will allow me to remove user profiles based on the user's username.

Roaming profiles with Group Policy set to prevent preservation of local stores would be ideal.

But you could remotely scan local workstations and remove the profile store for an individual user. But please clarify your statement above, as I do not want to suggest something the removes, Domain-wide, a user profile store by username if this is not what you wanted.

 
We do not have roaming profiles and it's not in my power to set that up. Military powers that be decision.

That is exactly what I need. When a user quits, I need to search the entire domain and remove their profile from every machine here.

When faced with a decision, always ask, 'Which would be the most fun?'
 
wcburtons post seems to be the answer. You need a script that runs that removes the reg entry and the profile foldr at the same time. Don't think you will get anything better than that really.

bcaster, how do you quote like that in threads? been trying to figure that out for a while.

ta
West
 
To westredd-

The quoting and other special codes are available through TGML. At the bottom of the reply box, you see an item lableled "Process TGML". That is a clickable link that will give you help on how to use it. Same thing for the Emoticons/Smileys.
 
wcburton said:
To westredd-

The quoting and other special codes are available through TGML. At the bottom of the reply box, you see an item lableled "Process TGML". That is a clickable link that will give you help on how to use it. Same thing for the Emoticons/Smileys.

Good stuff, thanks for letting me know!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top