Bypass UAC from VBScript deploying from SCCM
I am trying to deploy Microsoft's SyncToy which is a collection of 3 MSI files. When I create a simple vbs file to install all three silently and then try to push from SCCM to my Windows 7 clients, it does not install because UAC is enabled at its default level. Is there a way around this? Thanks
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
itolutions
13 years ago
Posted by:
bprobert
13 years ago
I am using run with admin rights in SCCM, but still no go. The script is as follows..
====
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strScriptFileDirectory = objFSO.GetParentFolderName(wscript.ScriptFullName)
WshShell.Run "msiexec /i " & strScriptFileDirectory & "\1Synchronization-v2.0-x64-ENU.msi /q", 0, True
WshShell.Run "msiexec /i " & strScriptFileDirectory & "\2ProviderServices-v2.0-x64-ENU.msi /q", 0, True
WshShell.Run "msiexec /i " & strScriptFileDirectory & "\3SyncToySetup.msi /q", 0, True
====
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strScriptFileDirectory = objFSO.GetParentFolderName(wscript.ScriptFullName)
WshShell.Run "msiexec /i " & strScriptFileDirectory & "\1Synchronization-v2.0-x64-ENU.msi /q", 0, True
WshShell.Run "msiexec /i " & strScriptFileDirectory & "\2ProviderServices-v2.0-x64-ENU.msi /q", 0, True
WshShell.Run "msiexec /i " & strScriptFileDirectory & "\3SyncToySetup.msi /q", 0, True
Posted by:
anonymous_9363
13 years ago
Posted by:
itolutions
13 years ago
Posted by:
pjgeutjens
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
bprobert
13 years ago
I got it working. I had to make the following change to UAC through group policy on all the windows 7 computers. It defaults to "enabled" if you leave UAC as it is out the box. Thanks for the help guys.
EnableInstallerDetection User Account Control: Detect application installations and prompt for elevation 1 = Enabled (default for home) 0 = Disabled (default for enterprise)
EnableInstallerDetection User Account Control: Detect application installations and prompt for elevation 1 = Enabled (default for home) 0 = Disabled (default for enterprise)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.