PC Review


Reply
Thread Tools Rate Thread

changing a registry key to all SID's

 
 
=?Utf-8?B?15DXldeo158=?=
Guest
Posts: n/a
 
      5th Dec 2004
Hi all,
I made a .reg file.
the key that i intend to change is located inside a user SID.

(EX:
HKEY_USERS\S-1-5-21-2018322775-1434109735-2322020850-500\AppEvents\EventLabels\.Default)

how can i make the change to all users, (disgarding the SID) withe a .reg
file ?

thanks,
oren.
 
Reply With Quote
 
 
 
 
David H. Lipman
Guest
Posts: n/a
 
      5th Dec 2004
Oren ( ???? )

The following News Group is more apropos: microsoft.public.windows.server.scripting


Dave




"????" <@discussions.microsoft.com> wrote in message
news:A0922368-FE43-4F2A-8CA6-(E-Mail Removed)...
| Hi all,
| I made a .reg file.
| the key that i intend to change is located inside a user SID.
|
| (EX:
| HKEY_USERS\S-1-5-21-2018322775-1434109735-2322020850-500\AppEvents\EventLabels\.Default)
|
| how can i make the change to all users, (disgarding the SID) withe a .reg
| file ?
|
| thanks,
| oren.


 
Reply With Quote
 
Doug Knox MS-MVP
Guest
Posts: n/a
 
      5th Dec 2004
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.

What you can do is change your REG file to point to HKEY_CURRENT_USER\AppEvents\EventLabels\.Default, then place a shortcut in Documents and Settings\All Users\Start Menu\Programs\Startup that runs:

REGEDIT /S <your reg file>

This will force the REG file to be entered, silently, when the user logs on.

You could also place this command in the Registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run.

Note: If you have disabled Registry editing for a user, then they're account will not be able to import the REG file. In this case, a VB Script would be more appropriate.

--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.

"????" <@discussions.microsoft.com> wrote in message news:A0922368-FE43-4F2A-8CA6-(E-Mail Removed)...
> Hi all,
> I made a .reg file.
> the key that i intend to change is located inside a user SID.
>
> (EX:
> HKEY_USERS\S-1-5-21-2018322775-1434109735-2322020850-500\AppEvents\EventLabels\.Default)
>
> how can i make the change to all users, (disgarding the SID) withe a ..reg
> file ?
>
> thanks,
> oren.

 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      5th Dec 2004
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
 
Reply With Quote
 
=?Utf-8?B?15DXldeo158=?=
Guest
Posts: n/a
 
      6th Dec 2004
thanks, doug,
I chose the first option you suggested,
Torgeir, i tried ur way too but it didnt work 4 me.

oren.
 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      6th Dec 2004
oren wrote:

> thanks, doug,
> I chose the first option you suggested,
> Torgeir, i tried ur way too but it didnt work 4 me.

Hi

The reg.exe method works when implemented correctly, but it
is a bit tricky.

More about the reg.exe method here:

http://groups.google.com/groups?selm...TNGP10.phx.gbl



--
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing something in the registry =?Utf-8?B?c29ob2NoaWNr?= Windows XP Help 1 18th Apr 2007 09:02 AM
What is changing my registry? Dale Bradford Microsoft C# .NET 5 16th Sep 2004 09:28 AM
Registry Keep Changing Ben Blackmore Microsoft Windows 2000 Active Directory 4 9th Mar 2004 08:16 AM
Registry Keep Changing Ben Blackmore Microsoft Windows 2000 Registry Archive 8 9th Mar 2004 08:16 AM
Registry Keep Changing Ben Blackmore Microsoft Windows 2000 Registry 4 9th Mar 2004 08:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 AM.