I need help fast on this one.
I need to run an application as Administrator. The PC is running in a protected user account and I need to run an application behind the scenes as Administrator. So I tried it with a vb script, following.
I got message "Variable is wScript undefined". I am a rookie in VB.
'This script allows limited accounts to use KioskDeployer
'as the Administrator. It must be placed in the same
'folder with the executable program file for KioskDeployer. A shortcut
'to this script file can then be put on the Desktop.
'-------------------------
----------
----------
----------
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScr
ipt.Shell"
)
oShell.Run "runas /user:Administrator ""c:\WalmartKiosk\KioskDep
loyer\Kios
kDeployer.
exe"""
WScript.Sleep 100
'Replace the string yourpassword~ below with
'the password used on your system. Include tilde
oShell.Sendkeys "987654~"
Wscript.Quit
Start Free Trial