myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Trying to push .reg to SCCM clinets - mixed results

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Trying to push .reg to SCCM clinets - mixed results Page: [1]
Login
Message << Older Topic   Newer Topic >>
Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 11:18:13 AM   
Winston Smith

 

Posts: 53
Score: 0
Joined: 12/18/2007
Status: offline
Hi,

I'm trying to push a .reg to machines that will create a key in RunOnceEx\0001 to launch a web page on next reboot. Although initial testing appeared to work, machines in the second group are failing. SCCM Advertisement log reports that the advertisement is running successfully, but the regedit is not happening. The advertisement sends a .cmd file which in turn calls the .reg file. Here they are...

[splash.cmd]
@echo off
net use /delete z:
net use z:
\\sms_server\splashshare
%windir%\regedit.exe /s z:\splashscreen.reg
net use /delete z:

[/splash.cmd]

[splash.reg]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001]
"MyApp"="\"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE\"
www.boston.com"
[/splash.reg]
 
The server share is wide open (Everyone/Modify). I've made multiple changes to the .cmd file, and have only succeeded in causing one of the test machines that previously worked to now fail. The machines I'm testing against all have Domain Admins in the local administrators group, and are pretty normal configuration. I'm at a loss.

Any ideas?
Post #: 1
RE: Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 11:24:10 AM   
rtruss


Posts: 250
Score: 11
Joined: 11/4/2004
Status: offline
I know this may seem far out there but is it possible that the path on the systems in question is bad (Older oracle installs could cause this.)? Try changing the %windir%\regedit.exe to c:\windows\regedit.exe.

_____________________________

Roger Truss
Assistant Windows Administrator
SMS Admin
Trend Micro Admin
ImageUltra Admin

Please rate my post ;)

(in reply to Winston Smith)
Post #: 2
RE: Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 11:26:43 AM   
Winston Smith

 

Posts: 53
Score: 0
Joined: 12/18/2007
Status: offline
I actually changed "c:\windows\" to "%windir%" to troubleshoot, and at least one machine may have stopped working as a result of that change. I'll change it back, but the issue existed with "c:\windows" as well.

(in reply to rtruss)
Post #: 3
RE: Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 12:13:34 PM   
jnelson993


Posts: 925
Score: 127
Joined: 2/18/2005
From: Minneapolis, MN
Status: offline
Is it possible they've got so many mapped drives that they don't have a Z: drive available?  Or possible they're already using a Z: drive?  If either of those are correct, the mapping will fail and it won't get done.    In my estimation, if you're using a .BAT file, you don't need to do that drive mapping stuff, just reference the source files using %~dp0 like this
http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/15/121348.aspx

_____________________________

Number2 (John Nelson)
MyITForum - Blog
MyITForum - Forum Posts

(in reply to Winston Smith)
Post #: 4
RE: Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 1:18:43 PM   
Winston Smith

 

Posts: 53
Score: 0
Joined: 12/18/2007
Status: offline
I dispensed with the .cmd file entirely and created a new package/Program with the following characteristics: in 'Command Line:' I entered

c:\windows\regedit.exe /s "SplashScreen.reg"

This works a treat!

(in reply to jnelson993)
Post #: 5
RE: Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 1:47:23 PM   
gjones


Posts: 844
Score: 50
Joined: 6/5/2001
From: Ottawa, Ontario, Canada
Status: offline
quote:

ORIGINAL: Winston Smith

I dispensed with the .cmd file entirely and created a new package/Program with the following characteristics: in 'Command Line:' I entered

c:\windows\regedit.exe /s "SplashScreen.reg"

This works a treat!

FYI only.

Regedit should be within the path and therefore you don't need to provide the full path the exe.

So you might want to change it to just regedit.exe /s "splashScreen.reg", as this will allow for it to be successful on PC that don’t use C:\Windows.



_____________________________

Garth@enhansoft.com

For a List of my Articles
http://www.myitforum.com/contrib/default.asp?cid=116
Blogs:
http://smsug.ca/blogs/garth_jones/default.aspx
http://myitforum.com/cs2/blogs/gjones/default.aspx


(in reply to Winston Smith)
Post #: 6
RE: Trying to push .reg to SCCM clinets - mixed results - 9/4/2008 2:21:01 PM   
jnelson993


Posts: 925
Score: 127
Joined: 2/18/2005
From: Minneapolis, MN
Status: offline
Even better.  I use a CMD file only if I must.  If you can do it in the commandline, then more the better.

_____________________________

Number2 (John Nelson)
MyITForum - Blog
MyITForum - Forum Posts

(in reply to gjones)
Post #: 7
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Trying to push .reg to SCCM clinets - mixed results Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.438