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!

Possible to Enumerate HKEY_USERS ??

Status
Not open for further replies.

country73

Technical User
Jan 17, 2003
59
US
We are currently upgrading our Exchange server from 5.5 to 2003; for about 150 individuals that connect via Citrix, the decision has been made for their Outlook profiles to be deleted so that they will be forced to recreate their profiles.
Is there any way to Enumarate all of the keys in HKEY_USERS so that I can work with just the keys that start with S-1-5-21?
The information that I am trying to clear out resides in:
HKEY_USERS\S-1-5-21-<various keys>\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\<Delete all entries in here>
 
Found a solution; I'm going to first enumarate the registry keys in: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
From there I can grab each key that begins with S-1-5-21 and then use that to take care of the HKEY_USERS\S-1-5-21-...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top