Changing Reg Key for Domain Users

  • Thread starter Thread starter Sarfaraz
  • Start date Start date
S

Sarfaraz

I have inserted that perticular Reg Key logon using
script, the same is given below.

Dim oShell
Set oShell=CreateObject("wscript.shell")
oShell.RegWrite "HKEY_CURRENT_USER\Software\Valve\CounterS
trike\Settings\Key","2217424267886","REG_SZ"
'**SCRIPT END

I also want the same key should reflect in

"HKEY_USERS\S-1-5-21-2877399473-3800248976-1131707575-5903
\Software\Valve\CounterStrike\Settings\Key","2217424267886
","REG_SZ"

But in S-1-5-21-2877399473-3800248976-1131707575-5903 the
last 4 numbers are different for every user so I cant
push this key using script.

Need suggestion/help for pushing the same key for users.

Thanks in advance.
 
In said:
I have inserted that perticular Reg Key logon using
script, the same is given below.

Dim oShell
Set oShell=CreateObject("wscript.shell")
oShell.RegWrite "HKEY_CURRENT_USER\Software\Valve\CounterS
trike\Settings\Key","2217424267886","REG_SZ"
'**SCRIPT END

I also want the same key should reflect in

"HKEY_USERS\S-1-5-21-2877399473-3800248976-1131707575-5903
\Software\Valve\CounterStrike\Settings\Key","2217424267886
","REG_SZ"

But in S-1-5-21-2877399473-3800248976-1131707575-5903 the
last 4 numbers are different for every user so I cant
push this key using script.

Need suggestion/help for pushing the same key for users.

You can modify the <profile root>\Default User\ntuser.dat
for new newly generated profiles.

For existing accounts/profiles perhaps run a logon script that
imports from a registry file so that changes will be merged at logon.
regedit.exe /s <path>\fixCS.reg

If may be advisable to also generate a account-specific file to test
for (at "first run") so as not to apply the same change repeatedly.
 
Back
Top