Raybans
asked on
Terminal Server VBScript Error
I
Scenario
I am setting up a terminal server on windows 2003 Server
I have 3 applications that I need the user to choose between when they connect
I have written a vbs script (not a vbs guru, just copied and modified one being used on windows 2000 terminal server with different client.)
When I run the VB Script directly logged onto the Server, the script does exactly what it is supposed to do. (which is a milestone for me in itself, as my programmer is on leave)
I have then configured Terminal services to only run the application (the vb script) and to do so in the location of the folder it is in.
When we logon with a normal or admin account the result is the same.
An error (193) occurred while creating user logon.
This initial program cannot be started: D:\VBScript\SalesLogix.vbs
Please consult help for more information
Any help is appreciated.
Thanks in advance
Raybans
Scenario
I am setting up a terminal server on windows 2003 Server
I have 3 applications that I need the user to choose between when they connect
I have written a vbs script (not a vbs guru, just copied and modified one being used on windows 2000 terminal server with different client.)
When I run the VB Script directly logged onto the Server, the script does exactly what it is supposed to do. (which is a milestone for me in itself, as my programmer is on leave)
I have then configured Terminal services to only run the application (the vb script) and to do so in the location of the folder it is in.
When we logon with a normal or admin account the result is the same.
An error (193) occurred while creating user logon.
This initial program cannot be started: D:\VBScript\SalesLogix.vbs
Please consult help for more information
Any help is appreciated.
Thanks in advance
Raybans
ASKER
loged on to the local machine yes
but I will check the WScript.exe and CScript.exe
but I will check the WScript.exe and CScript.exe
Raybans
What about when they log in as a TS user, can they run the script manually from there?
I think this is probably permissions on the VBS or the EXEs
Cheers
JamesDS
What about when they log in as a TS user, can they run the script manually from there?
I think this is probably permissions on the VBS or the EXEs
Cheers
JamesDS
ASKER
the terminal server user account has actually been given local admin right to the server (do to the crappy database client software being run later) as well
but will try what you said now james
but will try what you said now james
ASKER
JamesDS
when logged on through the terminal server as normal
any user is able to run the vbs script.
when logged on through the terminal server as normal
any user is able to run the vbs script.
Raybans
Is the D drive available at that point in the logon process?
Cheers
JamesDS
Is the D drive available at that point in the logon process?
Cheers
JamesDS
ASKER
The D drive is actually the drive that the OS is loaded on.
but still not sure, it should be
tried moving the script to D:\ instead of in the folder and no change
but still not sure, it should be
tried moving the script to D:\ instead of in the folder and no change
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That works fine from a Desktop Terminal Session
so I am still stumped
so I am still stumped
Raybans
If that command doesn't work as the startup script, then I am afraid I am beat
Can you start another app, like NOTEPAD.EXE on connection?
Cheers
JamesDS
If that command doesn't work as the startup script, then I am afraid I am beat
Can you start another app, like NOTEPAD.EXE on connection?
Cheers
JamesDS
ASKER
using notepad.exe as the program to launch works fine.
So it is only the script it does not like
So it is only the script it does not like
ASKER
ok, a batch file runs
and notepad runs
the vbs runs if I am logged onto the desktop
why it will not run if I am using it for the application on launchin terminal services I still dont know
but I can get a batch file to launch it for me?
not desirable but lets me move on with the load testing while I look for the solution
and notepad runs
the vbs runs if I am logged onto the desktop
why it will not run if I am using it for the application on launchin terminal services I still dont know
but I can get a batch file to launch it for me?
not desirable but lets me move on with the load testing while I look for the solution
Raybans
A batch file would be fine, use the Cscript command line above to call your script.
Also try a new VBS file that only has the following command in it:
wscript.echo "test"
it's possible the problem is code related (although I doubt it!)
Cheers
JamesDS
A batch file would be fine, use the Cscript command line above to call your script.
Also try a new VBS file that only has the following command in it:
wscript.echo "test"
it's possible the problem is code related (although I doubt it!)
Cheers
JamesDS
ASKER
Answer
instead of in the environment tab of the properties for the terminal connector
instead of using the program and path of
C:\VBScript\SalesLogix.vbs
it should have been
wscript C:\VBScript\SalesLogix.vbs
then it works like a charm
instead of in the environment tab of the properties for the terminal connector
instead of using the program and path of
C:\VBScript\SalesLogix.vbs
it should have been
wscript C:\VBScript\SalesLogix.vbs
then it works like a charm
Raybans
Glad you fixed it, but the command I suggested above (cscript C:\VBScript\SalesLogix.vbs ) should have worked.
If you don't feel any of the suggestions was helpful, you can get a refund in community support.
Cheers
JamesDS
Glad you fixed it, but the command I suggested above (cscript C:\VBScript\SalesLogix.vbs
If you don't feel any of the suggestions was helpful, you can get a refund in community support.
Cheers
JamesDS
Does the User have the rights to read and execute the .vbs file?
Are they allowed to run WScript.EXE and/or CScript.EXE?
Can the user run the .VBS file by hand when logged in?
Cheers
JamesDS