Link to home
Start Free TrialLog in
Avatar of mati02
mati02

asked on

Modify Registry Key - Via SMS

I would like to modify and existing registry key to select users in my company. Cannot use GPO or Logon scripts (adm templates). Below is the key. Could someone please give me syntax i would use? I must use SMS to deploy the key. I do not have SMS installer to create the .EXE file

[HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\License\LICENSE_SERVER

Current value is @XXXXXX and I need to change it to @YYYYY
Avatar of mati02
mati02

ASKER

SMS 2003
This might help...

How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file:
http://support.microsoft.com/kb/310516

I think you might have to create a batch file and within the batch file run regedit.

Batch File Help:
http://www.computerhope.com/batch.htm
Or you could execute a VBScript (which is what I do in my environment) to make the changes by calling "cscript.exe".

The VBScript will be responsible for making the registry change.

Registry Scripting Center
http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/registry/#CreateStringDword.htm

Create String and DWORD Values
http://gallery.technet.microsoft.com/ScriptCenter/en-us/8253ebcd-6024-4d0d-944d-0f8c209c933a
Avatar of mati02

ASKER

I need to do this through SMS Silently.
I know.  Create a Package, then a Program and in the Command Line field just enter the appropriate command-line arguments.  See image.
SCCM-Program-CommandLine.png
Avatar of mati02

ASKER

unfortunately i'm not a scripting master. I will try creating a batch file and run exported key with modifications (which i have) from a file share.
Avatar of mati02

ASKER

batch files will not run through SMS. I ran batch file with

XXX.bat /s and did not work.
Avatar of mati02

ASKER

batch file called the registry key.
ASKER CERTIFIED SOLUTION
Avatar of CitySec
CitySec

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mati02

ASKER

Excellent. just what i was looking for.