Solved

Delete specific user profile on multiple 2003 servers

Posted on 2007-11-30
4
582 Views
Last Modified: 2013-12-05
Hi,
We have a problem where the printing has stopped from an application and we have found that deleting and recreating the service account profile fixes the problem.

Therefore I need to delete a profile called PeakMobile on 180 domain controllers and am looking to be able to script it. Searching EE there have been a few suggestions to use MS delprof which is OK to delete profiles inactive for a certain period, but you cannot specify a specific profile to delete.

Any suggestions?

Open in new window

0
Comment
Question by:dmarch100
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
Netman66 earned 250 total points
ID: 20381181
For 45 Euros, this tool is worth the money.

http://www.no-nonsens.nl/products/remoteprofilecleaner/remoteprofilecleaner.html?phpid=download

The time this will save you will pay for the tool.
0
 
LVL 3

Assisted Solution

by:top_gizmo
top_gizmo earned 125 total points
ID: 20382023
If you just want to remove the profile and not a local user account you can just script deleting the profile folder.

I found but have not tested this utility that does what you want:

http://www.ctrl-alt-del.com.au/files/RemProf.zip

If you want to delete a local account you can use the net user comamnd.

Net User UserName /Delete

0
 
LVL 51

Assisted Solution

by:Netman66
Netman66 earned 250 total points
ID: 20382061
Just deleting the folder is NOT the correct way to accomplish this.  There are registry entries that need removing also.

0
 
LVL 22

Assisted Solution

by:cj_1969
cj_1969 earned 125 total points
ID: 20384212
write it yourself to do what you want.
First, make a list of the servers, a simple list in a text file is all you need.
If you are accessing service account profiles then you would need to stop any services using the account first.  You can use sysinternal PSTools to remotely stop the service(s).

Then delete the profile directory ... you could also look to script the removal of the profile info from the registry, if you can get the UID for the account then it should be easy enough.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now