View Single Post
  #4  
Old December 5th 04, 06:07 PM
Torgeir Bakken \(MVP\)
external usenet poster
 
Posts: n/a
Default changing a registry key to all SID's

Doug Knox MS-MVP wrote:

You can't. When you see HKEY_USERS\S-1-5-21-201........... that
indicates that this user account is specifically logged into the
computer. Users that aren't logged on won't appear here. For
example, if you're the only user logged on, then your SID will be
listed in HKEY_USERS, and is really just a different name for
HKEY_CURRENT_USER.

Hi

You can do this if using a script instead of a reg file, by enumerating
all user profiles on the computer, and loading the individual user's
registry hive and then do the registry change. You can use the command
line tool reg.exe that comes builtin with WinXP to do both the hive
loading and the registry change.

But if one of your suggestion is acceptable for oren, they are easier
to implement ;-)


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
Ads