Answered by:
SCCM Package - Run As Administrator

Question
-
I am trying to create a package to install Adobe Authorware Plugin for IE as described in this article: http://www.reich-consulting.net/2008/03/28/unattended-installation-of-authorware-web-player/. We have used the method for years on XP and 7, but always ran it manually using a batch file. For Windows 7 we MUST Run As Adminisrator to be successful.
To make this as short as possible, I am now trying to run the first command from that batch file as an advertised program, but it does not work. The command is:
rundll32 setupapi.dll,InstallHinfSection DefaultInstall 0 awswax.inf
When the program runs it shows in the reports and logs that everything went ok (Return Code of 0 in execmgr.log), but the files do not get installed to C:\Windows\System32\Macromed\Authorwa as they do when I run interactively with Run as Administrator. The program is set to run from local cache and Run with Administrative Rights is selected.
In searching for my problem I found many discussions that say the packages execute as the SYSTEM account which does not have the same restrictions and does not need to Run As Administrator. I found that if I use PSEXEC from MS/Sysinternals, I can launch a cmd window which is running as the SYSTEM account by running this command:
psexec -i -s cmd.exe
If I try and execute my install command as the SYSTEM account (now interactively), I get "Installation failed". So, this leads me to believe that I still need to select Run As Administrator.
Can anyone help me to make this silent install successful? I don't see a way to have a package Run As Administrator.Wednesday, June 13, 2012 2:11 PM
Answers
-
Hi,
There is a dirty work-around, and that is to use a custom Task sequence and the step Run Command Line. After R2 and R3 there is an option to run command line using a specific User Account. I have run in to simliar issues before and used that feature to solve them.
Then you can run your command line using an accoutn that is local admin on the computer and it should work...
Regards,
Jörgen-- My System Center blog ccmexec.com -- Twitter @ccmexec
- Marked as answer by JamesU Wednesday, June 13, 2012 4:20 PM
Wednesday, June 13, 2012 2:28 PM
All replies
-
Hi,
There is a dirty work-around, and that is to use a custom Task sequence and the step Run Command Line. After R2 and R3 there is an option to run command line using a specific User Account. I have run in to simliar issues before and used that feature to solve them.
Then you can run your command line using an accoutn that is local admin on the computer and it should work...
Regards,
Jörgen-- My System Center blog ccmexec.com -- Twitter @ccmexec
- Marked as answer by JamesU Wednesday, June 13, 2012 4:20 PM
Wednesday, June 13, 2012 2:28 PM -
Oh wow, that is dirty, but I could see it working. Is this fixed/addressed in SCCM 2012?
Wednesday, June 13, 2012 3:20 PM -
No changes in CM12.
Torsten Meringer | http://www.mssccmfaq.de
Wednesday, June 13, 2012 3:34 PM -
Thanks for the help.Wednesday, June 13, 2012 4:21 PM
-
Hi, I'm a new software packager and I have this problem with an old application from Win2k. The client needs to have it deployed with SCCM 2012 and the application package once is installed in order to run the application requests to be executed as Administrator. So the installation despite is successfully installed no user can access the application unless is an Admin.
So I don't understand the steps you replied before "...custom Task sequence and the step Run Command Line. After R2 and R3 there is an option to run command line using a specific User Account"
Could you please show an example/screen shot please
Thanks in advance.
Thursday, April 18, 2013 5:12 PM -
Thursday, April 18, 2013 6:23 PM
-
I never used it though...
- Proposed as answer by Joel E.G Thursday, June 6, 2013 5:09 AM
Thursday, April 18, 2013 6:23 PM -
That works, thanks. In SCCM 2012, it let me run the bat file with an admin account using your dirty little trick.
- Proposed as answer by DDFL Friday, September 16, 2016 2:37 PM
Friday, September 16, 2016 2:35 PM -
Hi Jorgen Nilsson,
This works fine and helps to get output. But there is a challenge, I am deploying a script which is required to throw/launch output in IE. There are two scripts in my task sequence, first one is creating a file on drive and second is launching the same file. The second script is not working anymore while I am logged in with standard user. Any idea ?
Saturday, May 25, 2019 9:48 AM