Link to home
Start Free TrialLog in
Avatar of Nik
NikFlag for Croatia

asked on

How to completely delete a profile on Windows Server 2008

We are using Citrix XenApp v5.5 environment which is installed on Windows Server 2008 x86 servers.

One of our applications won't map printers, although the problem is fixed once we delete the user profile on the server.

Now, I know that the proper way to delete the user profile is to use Advanced System Settings and delete profiles from there, but I need a script that would completely delete all user profiles on the server.

Can someone help?

Thanks!
Avatar of sunilswain
sunilswain
Flag of India image

Hi,

There are different options.. using tools or using scripts. Check the following:
 scripts:
1) http://www.theshonkproject.com/index.php?option=com_content&task=view&id=50&Itemid=1
2) http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=161775&site_id=1#import

GPO n other tools:
1) The policy setting is at Computer Configuration->Administrative Templates->System->User Profiles->Delete cached copies of Roaming Profiles

User Profile Hive Cleanup:
http://www.microsoft.com/downloads/d...DisplayLang=en 

-Sunil
Forgot about the utility "delprof.exe". Use delprof.exe on the resource cd.
delprof /Q will do.

-Sunil
Avatar of Nik

ASKER

This works for Windows Server 2003, but will not completely deleter profiles on Windows Server 2008
For Windows 2008, You will need a clean local profile stored on the server in the users folder(default location) and also from [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList]. Delete the sid that are failing.

-Sunil
Sorry typo - **You will need to clean **
ASKER CERTIFIED SOLUTION
Avatar of Nik
Nik
Flag of Croatia image

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

ASKER

I have found the solution myself.
Avatar of calvinnghe
calvinnghe

We are experiencing the same problem regrading Windows 2008 profiles. Do you mind sharing your script?
Avatar of Nik

ASKER

Hi there calvinnghe,

I've just posted it on my web site. Hopefully it will help.
http://www.wincert.net/tips/windows-server/2285-how-to-completely-delete-a-windows-server-2008-profile-with-script.html

Regards,
Nik