Hi

I have to install some software to roughly 1000 pc's the software is going to be installed via script that will be running from a mapped network drive, the problem is, is there a way to run my script elevated so I am not bothered by the UAC prompts when kicking off the install?. I would rather not disable the UAC if at all possible.



Thanks for any an all advice you can give me, as this is rather urgent.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
the software is going to be installed via scriptWhy? If you don't have a fully-fledged deployment mechanism, use an MSI with Group Policy.

If there were some way to bypass UAC in script, you don't think that that might be a teensy-weensy flaw-ette in the whole rationale behind its existence? You could start the EXE via the script as a domain admin but then you run into securing that account's password (as you wouldn't really want it exposed in script...)
Answered 04/08/2011 by: VBScab
Red Belt

Please log in to comment
0
Correct me if I am wrong don't you need Active Directory to use group policy?. We are on a Novell Network?
Answered 04/08/2011 by: clivebuckwheat1
Purple Belt

Please log in to comment
0
Damn crystal ball, all fogged-up again!
Answered 04/08/2011 by: VBScab
Red Belt

Please log in to comment
0
Any thoughts as to what I can do?
Answered 04/08/2011 by: clivebuckwheat1
Purple Belt

Please log in to comment
0
Since you are on a Novell network, do you have ZCM or ZFD for software distribution?

Also you could script to turn off the UAC prior to the install and turn it back on when it's done.
Answered 04/08/2011 by: jfred
Senior Yellow Belt

Please log in to comment
0
no ZCM or ZFD, because we are in the process of changing to AD in the next 4 months.

When you happen to have that script handy to turn of UAC on and OFF?
Answered 04/08/2011 by: clivebuckwheat1
Purple Belt

Please log in to comment
0
If your the network is moving to AD, see if the Enterprise Server software from Microsoft is being purchased, I do believe SMS comes part of the package. You'd have to read up on what comes with the Enterprise Server software..

Here are some script examples.

Example 1: 'Import Registry Settings

set oFile = CreateObject("scripting.FileSystemObject")
set oShell = CreateObject("wscript.shell")


oShell.Run("regedit.exe /s "path to registry key to import")

For the above script you'd have to export the registry key (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System ) when UAC on and then of course when UAC is off.



Example 2: Turn off: @Echo off

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

exit

Example 3: Turn on: @echo off

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

I hope these examples help
Answered 04/08/2011 by: jfred
Senior Yellow Belt

Please log in to comment
0
Did you try running the VBScript under Local System account?
Answered 04/11/2011 by: tammalac@deshaw.com
Senior Yellow Belt

Please log in to comment
0
I have tried the script under local system account and local admin. I have had success both ways.

The batch files work just as good for me as well.
Answered 04/11/2011 by: jfred
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity