Re: Rollout Registry Settings via SMS (w/Adv Clients)
- From: ttnet <ttnet@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Sep 2007 13:26:01 -0700
Sherry, do have a similar script that launches an exe with the /s command
line and also logs to a specific log file?
Any information would be greatly appreciated.
Tom T.
"ttnet" wrote:
Sherry, thanks for the script. I will give it a try..
"Sherry Kissinger [MVP-SMS]" wrote:
Here's a sample vbscript; runs an msi installation w/a transform, and if a
success code of 0 is returned post-install, then a reg import is run. I just
grabbed it from a production source folder (changed the names to 'widgets',
etc; for generic reasons); but it worked to rollout an application to ~2700
machines...
On Error Resume Next
Set sho = Wscript.CreateObject("Wscript.Shell")
strCurrentDir = Left(Wscript.ScriptFullName,
(InstrRev(Wscript.ScriptFullName, "\") -1))
strInstall = "msiexec.exe /i " & Chr(34) & strCurrentDir & "\Widgets.msi" &_
Chr(34) & " TRANSFORMS=" & Chr(34) & strCurrentDir &_
"\1033.mst" & Chr(34) &_
" /qb-! /l*v c:\Widgets.log"
intRetVal = sho.run(strinstall,0,True)
if intretval = 0 then
sho.Run "cmd /c reg import " & strCurrentDir & "\TheKeysToImport.reg", 0,
vbTrue
end if
wscript.quit(IntRetVal)
--
Standarize. Simplify. Automate.
"ttnet" wrote:
Sherry, thanks for the response. Do you have any idea how to tell the batch
file or script the path to the reg files if they are located in the package
on the DP? That always confused me, so I went with DFS.
"Sherry Kissinger [MVP-SMS]" wrote:
I don't know about "most people", but for regkeys I'll either use a reg
import, or because I'm a vbscript person, I'd probably write a vbscript to
drop in those regkeys. In both cases I would use the distribution points.
--
Standarize. Simplify. Automate.
"ttnet" wrote:
Kim, the I am trying to add the following reg settings listed below. I am not
sure about the credentials. I assume it is using the local system account
when running the advertisement. I do know that each computer account in AD
has access to the DFS share.
Kim, do people use batch files that point to the package folder on the DP? I
assume using DFS would be easier. Any advice or links to any articles or
websites that may be of interest would be appreciated.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Locations\Location1]
"Country"=dword:00000001
"Flags"=dword:00000001
"AreaCode"="215"
"DisableCallWaiting"=""
"LongDistanceAccess"=""
"Name"="New Location"
"OutsideAccess"="9"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv]
"Type"=dword:00000120
"Kim Oppalfens [MVP]" <""Kim dot Oppalfen" wrote:
ttnet wrote:
I am attempting to rollout 3 registry files using a batch file through SMSWhat hive are you putting the reg keys in?
2003. SMS states the batch file completed successfully, but none of the
registry entries are applied. I am using DFS as the data source so that the
batch file can point to the DFS share where the registry entries are located.
Does anybody have an idea of why this will not work? or have a better way of
doing this?
Thank you.
Tom T.
Is your batch file running using administrative credentials in the
program settings?
--
"Everyone is an expert at something"
Kim Oppalfens - Sms Expert for lack of any other expertise
Windows Server System MVP - SMS
http://www.blogcastrepository.com/blogs/kim_oppalfenss_systems_management_ideas/default.aspx
- Follow-Ups:
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- From: Sherry Kissinger [MVP-SMS]
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- References:
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- From: Kim Oppalfens [MVP]
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- From: ttnet
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- From: Sherry Kissinger [MVP-SMS]
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- From: ttnet
- Re: Rollout Registry Settings via SMS (w/Adv Clients)
- Prev by Date: Re: Rollout Registry Settings via SMS (w/Adv Clients)
- Next by Date: Re: Exceeded run time
- Previous by thread: Re: Rollout Registry Settings via SMS (w/Adv Clients)
- Next by thread: Re: Rollout Registry Settings via SMS (w/Adv Clients)
- Index(es):
Relevant Pages
|