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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cirtix Mapping drives with logon and logoff Scripts.

Status
Not open for further replies.

djacobus

IS-IT--Management
Dec 31, 2003
49
US
We have a win 2003 AD domain with a citrix server running 2 applications. We run logon and logoff scripts through GPO's for each user for drive mappings. These logon and logoff scripts are wreaking havoc when users try to open these applications through citrix. Is there a way to stop these scripts from running whenever a users opens up a published app? Am I missing something? Thanks in advance!
 
Well.. I thought I found my answer but apparantly not. In Terminal server configuration under admin tools, properties page on ica and rdp connection: there is a setting to not map client drives. However, this does not stop the logon and logoff script from running. Blaaahhhh!!!! any help would be greatly appreciated.
 
Hi there

The way I do this is add a few lines to the script to login/out that first looks at the names of the servers.
All my TS Boxes have machine names with "CTX...."
Part of script I run;
Set objShell = WScript.CreateObject ("WScript.Shell")
Set objNetwork = WScript.CreateObject ("WScript.Network")

'Check to see if COmputer name contains CTX
If Instr (objNetwork.ComputerName,"CTX") > 0 Then
DoSomething

Else strClientIP = "NotTSBox"
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top