Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Running a reg file from a vb script

$
0
0

Hi,

I am trying to deploy a reg file from a vb script, but it is not working.  The script works fine when run manually.  I created a package pointing to the VB script and depolyed it to a test group.  It say the test group machines successfully completed it, but it did not make the registry changes.  At first I thought it was because of UAC, but I tried it on a computer that has UAC turned off.  Here is the script:

Set network = WScript.CreateObject("WScript.Network")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.run "regedit /S ""\\sccmservername\Source\Software Deployments\Scripts\Preview Pane\preview.reg""",0,True
WScript.Sleep 500

everyone has read access to this share.  Any ideas?

Thanks!


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>