Replacing the SID in a .reg file

B

Broonie

I want to change the registry key

[HKEY_USERS\%SID%\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Microsoft Outlook Internet Settings]

for a whole load of users but the SID is obvioulsy different for each
user. Is there any way I can use a variable (like the '%SID%' i've
just used above) in my .reg file that will replace the SID for each
user when i import the registry key.
 
M

Mark V

I want to change the registry key

[HKEY_USERS\%SID%\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Microsoft
Outlook Internet Settings]

You cannot. HKU is only populated with logged in accounts.
Use HKCU for each when logged on. Typically via logon script.
for a whole load of users but the SID is obvioulsy different for
each user. Is there any way I can use a variable (like the
'%SID%' i've just used above) in my .reg file that will replace
the SID for each user when i import the registry key.

If this is a MS Domain, Global Group Policies may be a solution.
 
B

Broonie

I want to change the registry key
[HKEY_USERS\%SID%\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Microsoft
Outlook Internet Settings]

You cannot. HKU is only populated with logged in accounts.
Use HKCU for each when logged on. Typically via logon script.
for a whole load of users but the SID is obvioulsy different for
each user. Is there any way I can use a variable (like the
'%SID%' i've just used above) in my .reg file that will replace
the SID for each user when i import the registry key.

If this is a MS Domain, Global Group Policies may be a solution.

What I am actually trying to do is set up dummy IMAP mail accounts in
Outlook which will then alow all the users to complete the accounts
with their own specifics. Is this possible in GPO.
 
M

Mark V

I want to change the registry key
[HKEY_USERS\%SID%\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\Microsoft Outlook Internet Settings]

You cannot. HKU is only populated with logged in accounts.
Use HKCU for each when logged on. Typically via logon script.
for a whole load of users but the SID is obvioulsy different
for each user. Is there any way I can use a variable (like
the '%SID%' i've just used above) in my .reg file that will
replace the SID for each user when i import the registry key.

If this is a MS Domain, Global Group Policies may be a
solution.

What I am actually trying to do is set up dummy IMAP mail
accounts in Outlook which will then alow all the users to
complete the accounts with their own specifics. Is this possible
in GPO.

I do not know. Sorry.

While probably not the best or easiest (or even possible
necessarily) one could investigate REG.EXE utility and the REG LOAD
option to load a registry profile and then modify it. All
requiring local Admin authority of course. Hazard potential, YMMV.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top