mlubbers Posted October 24, 2013 Share Posted October 24, 2013 I have created many scripts for the hospital I work for and since my normal coding partner has cancer, he no longer is working beside me so, I need to understand how to use the network SCCM account in a RunAs or RunAsWait command that will completely bypass the UAC when launched either directly from the .exe or from the SCCM Push. thank you so much and I really appreciate it! If you need samples of what I have done, please comment! Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 24, 2013 Share Posted October 24, 2013 A sample would be cool. The only way I knew (besides EnableULA) is to patch  RtlQueryElevationFlags in windows explorer --> UAC Level nothing --> No popup. But your code would really interesst me. Link to comment Share on other sites More sharing options...
mlubbers Posted October 24, 2013 Author Share Posted October 24, 2013 #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.1 Author: Matt Lubbers Company: Phelps County Regional Medical Center #ce ---------------------------------------------------------------------------- ShellExecuteWait( "dotNetFx40_Full_x86_x64.exe" , " /norestart /q " , "UNC" ) ShellExecuteWait( "ImageNow Client 6.7.0.exe" , " /S /v/qn " , "UNC" ) Then I push with SCCM the SCCM-Installer.exe below. #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.1 Author: Matt Lubbers Company: Phelps County Regional Medical Center Ext: 8910 #ce ---------------------------------------------------------------------------- RunAsWait( "username" , @LogonDomain , "password" , 0 , "Installer.exe" , @ScriptDir ) Link to comment Share on other sites More sharing options...
scubar Posted October 26, 2013 Share Posted October 26, 2013 In SCCM in the package when you create the program you can set it to run as administrator. You do not need to specify credentials in your script to install anything. The program will get called under the SYSTEM account. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now