Re: Rollout Registry Settings via SMS (w/Adv Clients)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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 SMS
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.
What hive are you putting the reg keys in?
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

.



Relevant Pages

  • Re: Current Directory of a Process
    ... can't recall the last time I executed a batch file, but the whole batch file methodology ... The script creates a log file, ... >current directory using the GetCurrentDirectorybefore invoking the script ...
    (microsoft.public.vc.mfc)
  • Re: report showing who logged in/out of nt 4 server
    ... > how to script the kixtart approach. ... The gist of this is that the active log file never gets too long, ... To display one of these log files, another batch file concatenates them all ... >> We have done this in batch and kixtart, and may soon re-do it in WSH. ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: not running login script
    ... I have 3 DCs able to run the script replicated in the ... However this log file is only ... and runs the whole batch file in the log entry. ... sysvol directory also? ...
    (microsoft.public.win2000.active_directory)
  • Re: not running login script
    ... In the script i have echo'd some ... However this log file is only ... > and runs the whole batch file in the log entry. ... > sysvol directory also? ...
    (microsoft.public.win2000.active_directory)
  • RE: server/connectcomputer from remote offices
    ... I have enabled DFS for the setup folder, which is replicating across the 3 ... I will be modifying the logon script to point at ... I will also be replicating the clientapps share, ... > I understand that you want to copy some files from SBS Server to DCs locate ...
    (microsoft.public.windows.server.sbs)