distributing a registry key with SCCM 2007 SP2
Dear Guyes, please i've created a package with a registry key "regfile.reg" in it and a program with "regedit.exe /s regfile.reg" and another program with "reg import regfile.reg" and tried to advertise both programs and the package was delivered to the client and the advertisement status said that it had started and completed successfully but when i check for the registry key on the client i didn't find the registry key on it, so i wanna know if the SCCM is capable of distributing registry keys? and if yes, is my procedure right or there is another procedure to import the registry key on clients using SCCM? Thanks in advance.
January 23rd, 2011 7:25am

Hello - Yes, it should be possible. You want to run this reg modification in user context or system account or administrator context? As per your requirement, selct the program behaviour. Also, try to create batch or CMD file using the above mentioned command and just mention the batch file name in the command line of the program. Anoop C Nair
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 7:39am

Hi, Packages are be default executed as local system, which has an effect when you deploy certain regkeys. Is it a key that should added to HKLM or HKCU? For HKCU you need to configure the package to run as the logged on user account (defined in the program properties).Kent Agerlund | My blogs: http://blog.coretech.dk/author/kea/ and http://scug.dk/ | Twitter @Agerlund | Linkedin: /kentagerlund
January 23rd, 2011 7:44am

it's the Internet Explorer registry key, i exported it from a machine and i need to import it on other machines using sccm.
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 8:11am

Hi, It does not matter whether it is a IE registry key or something else. As kent mentioned above, if the registry key changes are being made under "HKEY_CURRENT_USER", then the program should be set to "Run with users's rights". Otherwise, the changes would be applied to the default user under "HKEY_USERS\.DEFAULT". Regards, Madan | www.madanmohan.com
January 23rd, 2011 8:17am

changes are made under HKEY_LOCAL_MACHINE.
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 8:20am

Hello - Currently, Which option is selected in your program? If it's user context change it to Administrator.Anoop C Nair
January 23rd, 2011 8:26am

If the program is set to "Run with Users rights", is the end user who ran the program has admin rights on that PC? If all the changes needs to be made under HKLM, then please set the program to "run with administrator rights". This causes the program to run under local system account which would have full access to modify registry keys under - HKEY_LOCAL_MACHINE. Regards, Madan | www.madanmohan.com
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 8:37am

the program is set to run whe\ther a user is logged on or not and with administrative rights.
January 23rd, 2011 8:40am

Try with Administrative rights. That should give you good results.Anoop C Nair
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 10:56am

Ok. does the package contains the reg.exe or regedit.exe files in package itself. If not, can you try creating the following ..bat file and distribute it and see whether the registry changes are successful or not? @Echo Off Regedit.exe /s "%~dp0Regfile.reg" Here, Regfile.Reg, is your file. Regards, Madan | www.madanmohan.com
January 23rd, 2011 11:11am

did anyone try ti distribute aregistry key before and succeded? if yes, what is the procedure?
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 3:27pm

sure, have done it several times. Create package with no source files. Configure the program like this: reg add "HKCU\Software\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /F Kent Agerlund | My blogs: http://blog.coretech.dk/author/kea/ and http://scug.dk/ | Twitter @Agerlund | Linkedin: /kentagerlund
January 23rd, 2011 4:05pm

but i don't want to create a new reg i want to import an exported reg file.
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 4:09pm

Well that's basically the same. Create a package with source files, place the .reg file in it and use regedit /s your_reg_file.reg as the command line.
January 24th, 2011 4:36am

well that's actually what i did but it didn't work, i created a package with a test.reg as it's source folder and it's program is (regedit.exe /s test.reg) and i tried (reg import test.reg) and advertised the package and it was delivered successfully and completed successfuly and i even restarted the machine but when i checked for the registry key i didn't find it imported. is there any step missing?
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 4:51am

Same thing here. I am trying to modify a registry key so a service startup property changes to automatic from manual. I exported the reg key with the right value. Called it file.reg. I have since been trying every combination under the sun to get it to run. I have tried regedit /s file.reg as the command line. I have built a .bat file and put the line in the bat file and put the bat file in the command line. Nothing seems to work. Something is probably slightly off, but I can't find it.
January 26th, 2011 12:41am

regedit /s file.reg is the way to go. Please have a look at execmgr.log for details. Was the program configured to run with admin rights?
Free Windows Admin Tool Kit Click here and download it now
January 26th, 2011 9:15pm

And what about the question about execmgr.log? How should we help without knowing details?
January 28th, 2011 10:52pm

Yep.
Free Windows Admin Tool Kit Click here and download it now
January 29th, 2011 12:33am

Yep, I was having this same problem trying to get a reg key changed. But finally found success with help from this thread. In my environment we have many clients that after installing SCCM R2 and pushing the prereg update out. 100 or so systems would return "Remote Control Disabled" when we tried to use Remote tools. Below is a mini how to for anyone else having this issue. If there is a better way, please let me know. Package contents (Bold = txt file name, txt below = contents) sms_remote.bat @Echo Off regedit.exe /s sms_remote.reg sms_remote.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control] "Enabled"=dword:00000001 I ran it with admin rights and selected whether a user is logged in or not. The command line is sms_remote.bat I would have preferred to do it as Kent described above but I dont have the time to figure out how to change this key with this sort of a command. "reg add "HKCU\Software\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /F"
April 29th, 2011 12:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics