Hi there guys.
Sorry for the lack of presence....its all sorted out now.
Working like a bomb... if it picks up citrix server,it doesn't run scripts, and then runs scripts when logged on locally.
Thanks very much you guys...you have saved me soooo much AD work its not even funny.
Regards
This is what I currently have and its working when run \ double clicking on it:
Dim WshShell, objEnv, strComputerName, str2Search4
Set WshShell = CreateObject("Wscript.Shell")
Set objEnv = WshShell.Environment("PROCESS")
strComputerName = objEnv("COMPUTERNAME")
str2Search4 = "ctx"
Wscript.Echo...
Yeh Id rather not use clientname as its pure AD logins.
The citrix servers are ctx1 and ctx2, thats why I had ctx in the search string...
mrmovie:where do I put in your line?
Dim WshShell, objEnv, strComputerName, str2Search4
Set WshShell = CreateObject("Wscript.Shell")
strComputerName =...
Hmmm very strange...
I changed all the echos and this is the order I got:
Pcname
Machine name is not blank
will try and search for ctx
0
found str2Search4 in name
and then all the scripts ran....
however this only worked when running the .vbs from a network share....when logging...
Ooops sorry, also, forgot to ask what about the SET command?
The only thing I could pick up different from terminal server session to the actual session is this:
CLIENTNAME=PC103 (Which the actual login doesnt have)
and
SESSIONNAME=RDP-Tcp#0
Regards
Hi there.
Wow thanks for the prompt response!
I tried inputting what you had...removing everything under Main Process, but it didnt work:
Dim WshShell, objEnv, strComputerName, str2Search4
Set WshShell = CreateObject("Wscript.Shell")
Set objEnv = WshShell.Environment("PROCESS")...
Hi there.
I am a network guy so this programming stuff is way over my poor head and need to ask the professionals. :)
I have vbs scripts that run in a GPO under a certain OU per department etc etc and now that we are moving to citrix, I need the normal domain login scripts to run if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.