I have a situation where i need to insert a logon script in order to call an exe file that will install a piece of software when our network users log onto the network. These users are assigned basic "user level" access to their logon accounts and the software requires administrator level access.
The software exe file is located on a share that is mapped as an H: drive for each user that logs into our network
Here is the script I have written so far
<job>
<script language="vbscript">
oShell.Run "runas /noprofile /user:Administrator ""H:\RunThis\Clients\RunThis.exe"""
WScript.Sleep 50
oShell.Sendkeys "admin~"
</script>
</job>
the problem is i am getting a windows script host error dialogue box when the script tries to run.
here is some of the info from the error
Object Required: 'oShell"
Line 3
Character 2
I know next to nothing about writing scripts. the script language i have written so far was copied from a help website i found when doing a search for calling an exe file from a script. from there i altered the file path and exe filename as well as the administrator account name and password.
What I was hoping it would do is assign administrator rights to the machines that logon with this script and then run the exe file.
Any help is appreciated, thanks
			
			The software exe file is located on a share that is mapped as an H: drive for each user that logs into our network
Here is the script I have written so far
<job>
<script language="vbscript">
oShell.Run "runas /noprofile /user:Administrator ""H:\RunThis\Clients\RunThis.exe"""
WScript.Sleep 50
oShell.Sendkeys "admin~"
</script>
</job>
the problem is i am getting a windows script host error dialogue box when the script tries to run.
here is some of the info from the error
Object Required: 'oShell"
Line 3
Character 2
I know next to nothing about writing scripts. the script language i have written so far was copied from a help website i found when doing a search for calling an exe file from a script. from there i altered the file path and exe filename as well as the administrator account name and password.
What I was hoping it would do is assign administrator rights to the machines that logon with this script and then run the exe file.
Any help is appreciated, thanks
 
				
		 
			 
 
		 
 
		 
 
		 
 
		
 Facebook
Facebook Twitter
Twitter