October 25, 200421 yr Hi all,I would like to know if it exists a tool to change registry settings from an unconnected account:for example I would like to change a user HKCU setting but I'm loggued as administrator or SYSTEM Account.ORIs it possible through script or .cmd file (not the runas command, because it should be without user entry)because My users can't write into the registry and I would like to, with a script or a special program to launch at startup. (RunOnce)any ideas?
October 25, 200421 yr You can change their settings by loading their Hive: http://www.dougknox.com/xp/tips/xp_adv_reg_editing.htmFunny but that was very next post under this one when I read this.
October 27, 200421 yr Author thanx for responding!I already check your url but I would like to do it with a script.I'll try to look at your second IdeaThanks a lot!
October 29, 200421 yr Author hum great interesting!but how can I extract the pid from the registry and put it into a variable, all that with a script?For example:name=user1pid= S-1-5-21-1605980848-1645125239-839522115-1001-> get way to user1 (hklm\...)->user1 pid = S-1-5-21-1605980848-1645125239-839522115-1001-> insert S-1-5-21-1605980848-1645125239-839522115-1001 into variablecustomisation.cmd:hkey_user\S-1-5-21-1605980848-1645125239-839522115-1001\blablablaregedit /s bla bla blaany ideas?->
October 29, 200421 yr Users have rights to their HKCU keys so i dont see what the problem is.Unless you have a policy where they cannot access regedit and are trying toimport .reg files.Instead of using .reg file modify your script to use reg add this will allow users tomodify their HKCU keys even with policy restricting regedit.
October 29, 200421 yr Author Instead of using .reg file modify your script to use reg add this will allow users tomodify their HKCU keys even with policy restricting regedit.hum I didn't know that.I have restricted the registry acces to other users, that's why I wanted to inser value into it with administrator or System account...I have to check reg ADD.....
October 29, 200421 yr use reg import that definetly works.create your desired reg files and thenreg import your.reg file
October 29, 200421 yr REG.EXE is a command line tool that comes with XPIMPORT is one of the switches that are available with REG.EXE
October 29, 200421 yr Author thanks a lot for your presious help!i'll try and tell you ! THX ! (perhaps only on tuesday:-) )
October 29, 200421 yr Author is the windows XP version newer than this one?Command-line registry manipulation utility version 1.10.Copyright Microsoft Corporation 1997. All rights reserved.
October 29, 200421 yr YesC:\WINDOWS\system32>reg.exe /?Console Registry Tool for Windows - version 3.0I have used it with NT4.0 Workstation so I would assume it will work on W2KNow for what you was asking on how to get USER namesSave as a .vbs fileOn Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_Account",,48)For Each objItem in colItems Wscript.Echo "LocalAccount: " & objItem.LocalAccount Wscript.Echo "Name: " & objItem.Name Wscript.Echo "SID: " & objItem.SID Wscript.Echo "SIDType: " & objItem.SIDTypeNextYou can modify that simply. You can also read/write to reg with WScript BTW Edited October 29, 200421 yr by maxXPsoft
November 3, 200421 yr Author thanks a lot!could you send the "new" reg.exe v3.0?I tried the .vbs ;but it showed me plenty of little windows (with user name, sid ....)is it possible to do this just like an "ipn" variable?for /F "tokens=1 delims=." %%A in ('ipn') do set logname=%%Aecho %logname%: >> t:\Logs\name.txtfor /F "tokens=1 delims=." %%A in ('<vbsscript>') do set pid=%%A(pid= S-1-5-21-1605980848-1645125239-839522115-1001)reg add hku\%pid%\blablabla?
Create an account or sign in to comment