Registy Update for a Remote Server

dp

Distinguished
Mar 31, 2004
108
0
18,680
Archived from groups: microsoft.public.windowsnt.registry (More info?)

Hello,

There is a command-line tool for Windows (XP Pro) registry update - REG.
As far as I understand, it works only for local machine.

Is that possible to change the registry of the other server (within the
current network domain) - e.g. from a batch file?

Thanks,
DP
 

dp

Distinguished
Mar 31, 2004
108
0
18,680
Archived from groups: microsoft.public.windowsnt.registry (More info?)

Hello,

"DP" <no@email.com> wrote in message
news:%23I9c%23E3EFHA.2572@tk2msftngp13.phx.gbl...
> There is a command-line tool for Windows (XP Pro) registry update - REG.
> As far as I understand, it works only for local machine.

I was wrong - REG works for remote machines also.
There is a limitation though - the only root keys supported are HKLM and
HKU.
I need to update HKCU. MSDN says that HKCU is actually linked to the
particulare subfolder in HKU.

How I can either:
- Loop through all the branches inside HKU and update the registry values
for all the users;
or (preferrably)
- Loop through all the branches inside HKU and update the registry values
only for the current user?

All that should be done with the batch file.

Thanks in advance,
DP
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.registry (More info?)

You can't. HKCU is the current user hive and is stored in ntuser.dat within
the user profile. You'll need something that runs at logon for each user.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"DP" wrote:
| Hello,
|
| "DP" <no@email.com> wrote in message
| news:%23I9c%23E3EFHA.2572@tk2msftngp13.phx.gbl...
| > There is a command-line tool for Windows (XP Pro) registry update - REG.
| > As far as I understand, it works only for local machine.
|
| I was wrong - REG works for remote machines also.
| There is a limitation though - the only root keys supported are HKLM and
| HKU.
| I need to update HKCU. MSDN says that HKCU is actually linked to the
| particulare subfolder in HKU.
|
| How I can either:
| - Loop through all the branches inside HKU and update the registry values
| for all the users;
| or (preferrably)
| - Loop through all the branches inside HKU and update the registry values
| only for the current user?
|
| All that should be done with the batch file.
|
| Thanks in advance,
| DP
|
|