Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


November 2002

Connect to a Citrix Server from the Command Line

RSS
Subscribe to Windows IT Pro | See More Citrix Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

A frustration for consultants who work on different servers every day is that almost all GUI connection tools, including the standard Citrix client, require housekeeping before you can connect to a server. To work around this problem, you can create a connection file that contains all the relevant data. My solution is to use a batch file that takes the target Citrix server's address as an argument, as well as the connection's desired resolution. The batch file, which Listing 1 shows, then generates an ICA file (i.e., a plain text file with information about the connection) and launches the ICA client to connect to the Citrix server.

Running this batch file leaves two files on your system: ica.log and tmp.ica, both in your global \%TEMP% folder. If you have the Sleep command on your system, you can uncomment the lines rem sleep 2 and rem del %icafile% to automatically delete the temporary ICA file.

FASTFACT
61% of Windows & .NET Magazine readers use Windows 2000

End of Article



Reader Comments
This will only work if the admistrator has not set the option to run only published applications. Which should be the case from a security stand point.



Gerson Levitz December 13, 2002


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

New Microsoft/Yahoo! Deal? No

On Sunday, the Times of London reported that Microsoft had renewed talks with failing Internet giant Yahoo! and would manage its search engine for 10 years, while Yahoo! would retain control of its email, messaging, and content services. This report ...

How can I stop and start services from the command line?

...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing