UAC troubles and installing software from a network share. URGENT
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.
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
Answers (9)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
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...)
Posted by:
clivebuckwheat1
13 years ago
Posted by:
jfred
13 years ago
Posted by:
clivebuckwheat1
13 years ago
Posted by:
jfred
13 years ago
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
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
Posted by:
tammalac@deshaw.com
13 years ago
Posted by:
jfred
13 years ago
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.