Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Belphegory

    VBScript Help: If Computername = ctx

    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
  2. Belphegory

    VBScript Help: If Computername = ctx

    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...
  3. Belphegory

    VBScript Help: If Computername = ctx

    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 =...
  4. Belphegory

    VBScript Help: If Computername = ctx

    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...
  5. Belphegory

    VBScript Help: If Computername = ctx

    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
  6. Belphegory

    VBScript Help: If Computername = ctx

    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")...
  7. Belphegory

    VBScript Help: If Computername = ctx

    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...

Part and Inventory Search

Back
Top