hello
i have a windows 7 application that resides in the system 32 folder ..it works only with admin right .
I have a small setup : active directory and client computers ..i need a small script to make the app run as administrator without putting the password each time
I found this but it is not working :
i saved the vbs inside the executable exe folder but it is not working
i have a windows 7 application that resides in the system 32 folder ..it works only with admin right .
I have a small setup : active directory and client computers ..i need a small script to make the app run as administrator without putting the password each time
I found this but it is not working :
'This script allows limited accounts to use PrintArtist (PA)
'as the Administrator. It must be placed in the same
'folder with the executable program file for PA. A shortcut
'to this script file can then be put on the student Desktop.
'Your antivirus program may need to be set to allow scripts.
-------------------------------------------------------------------------------------------
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""PrintArt.exe"""
WScript.Sleep 100
'Replace the string yourpassword~ below with
'the password used on your system. Include tilde
oShell.Sendkeys "yourpassword~"
Wscript.Quit
I changed the user to runas /user: centralmotors.local\administrator and changed "yourpassword~" to the password lets say "123456~" i saved the vbs inside the executable exe folder but it is not working