to run a desktop shortcut with admin rights
Hello All
Is it possible to run a desktop shortcut with admin rights in windows 7.?
The desktop shortcut is pointing to a .vbs placed in the C Drive. it have couple of msi uninstallation and instalaltion...So every time I run the shortcut, UAC window is poppingup.
Is there any script which we can add in the vbs, to run it with admin rights...
Is it possible to run a desktop shortcut with admin rights in windows 7.?
The desktop shortcut is pointing to a .vbs placed in the C Drive. it have couple of msi uninstallation and instalaltion...So every time I run the shortcut, UAC window is poppingup.
Is there any script which we can add in the vbs, to run it with admin rights...
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
mahendraKumar
13 years ago
Posted by:
anphi
13 years ago
Hi Mahendra,
Thanks for the response...
I was basically looking for a script to achieve this..and I was able to achieve this using the script below..
If WScript.Arguments.Count = 0 Then
Set oShell = CreateObject("Shell.Application")
oShell.ShellExecute "wscript.exe", "path of the vbs" & " *", , "runas", 1
WScript.Quit
End If
Thanks for the response...
I was basically looking for a script to achieve this..and I was able to achieve this using the script below..
If WScript.Arguments.Count = 0 Then
Set oShell = CreateObject("Shell.Application")
oShell.ShellExecute "wscript.exe", "path of the vbs" & " *", , "runas", 1
WScript.Quit
End If
Posted by:
Bula
13 years ago
Posted by:
anphi
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.