We have created a number of scripts for a client recently that once done we can share around. All of these use the MFCOM and I would recommend you get started there for any type of Citrix/CMC scripting All of the ones we just completed are done in VB/WSH The following is a list of what they do: Printer clean up (enumerates servers from the farm then goes and does a clean up on each one. Can also be done By Zone if your zones are datacenter boundaries TS reboots that also enumerates servernames out of the MCM then will pull each server out of the published app list prior to loggin people off, cleaning up printer, doing delprof etc. Then after reboot can place the server back into the list of apps or not depending on a parameter passed to the script. Can also be done by Zone MFADDUSERS (Good for 2000 but great for 2003) Used to add domain groups to the Local users or Remote desktop users on MF servers. It does this by enumerating the servers in the farm via MFCOM so that all servers can be hit without maintaining a text file of server names. The nice thing is you can use this code for anything that you want to do to all the servers in the farm. Its one big FOR EACH that hits every server in the CMC Print driver Mapping Removal/addition: Got a HUGE fricking list of driver mappings that are all messed up in your farm? Our client had 1000+. we wrote a script to remove these from the CMC and dump them to a text file. A known good (and slimmed down) wtsuprn type file was then imported using our Print Driver Mapping Addition script which added the new (400+) mapping file into the CMC. This is way more stable than CTX's command line import for these types of files. Basically the MFCOM allows you to do almost anything.... Once these scripts are cleaned up (so as to remove client specific stuff) we will make them available. (of course there are a few we are keeping up our sleeves :-) Ron Oglesby Senior Technical Architect RapidApp Office 312.372.7188 Mobile 815.325.7618 email roglesby@xxxxxxxxxxxx -----Original Message----- From: Mack, Rick [mailto:RMack@xxxxxxxxxxxxxx] Sent: Tuesday, November 11, 2003 5:58 AM To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] Re: Command line tool for CMC functions Hi Tony, In answer to your question, which appears un-uuencoded below: The Citrix server SDK exposes quite a bit of the APIs used by the CMC and has a number of example programs that give you command line functionality to some of the CMC functions. Examples of these include the enum/export and newapp utilities that allow you to save and restore, and create new published applications from the command line. This stuff is VB scriptable as well, and I'm embarrassed that I can't at this time remember the author of a script that strips published apps off a server and then restores them. Regards, Rick Ulrich Mack rmack@xxxxxxxxxxxxxx Volante Systems 18 Heussler Terrace, Milton 4064 Queensland Australia. tel +61 7 3246 7704 ----------- I recall someone mentioning this before but I forget what the tool was. A client asked me if there is a command line tool to script the functions (specifically add users into the citrix administrators) during a scripted build process of their Citrix servers. This should be able to be done via API calls, but I recall someone mentioning a tool that was available that could perform some CMC functions via command line. Any help would be appreciated. Thanks, Tony. -----Original Message----- From: Tony Lyne [mailto:Tony.Lyne@xxxxxxxxxxxxxxxxxx] Sent: Tuesday, 11 November 2003 5:44 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Command line tool for CMC functions SSByZWNhbGwgc29tZW9uZSBtZW50aW9uaW5nIHRoaXMgYmVmb3JlIGJ1dCBJIGZvcmdldCB3 aGF0 IHRoZSB0b29sIHdhcy4NCiANCkEgY2xpZW50IGFza2VkIG1lIGlmIHRoZXJlIGlzIGEgY29t bWFu ZCBsaW5lIHRvb2wgdG8gc2NyaXB0IHRoZSBmdW5jdGlvbnMgKHNwZWNpZmljYWxseSBhZGQg dXNl cnMgaW50byB0aGUgY2l0cml4IGFkbWluaXN0cmF0b3JzKSBkdXJpbmcgYSBzY3JpcHRlZCBi dWls ZCBwcm9jZXNzIG9mIHRoZWlyIENpdHJpeCBzZXJ2ZXJzLiBUaGlzIHNob3VsZCBiZSBhYmxl IHRv IGJlIGRvbmUgdmlhIEFQSSBjYWxscywgYnV0IEkgcmVjYWxsIHNvbWVvbmUgbWVudGlvbmlu ZyBh IHRvb2wgdGhhdCB3YXMgYXZhaWxhYmxlIHRoYXQgY291bGQgcGVyZm9ybSBzb21lIENNQyBm dW5j dGlvbnMgdmlhIGNvbW1hbmQgbGluZS4NCiANCkFueSBoZWxwIHdvdWxkIGJlIGFwcHJlY2lh dGVk Lg0KIA0KVGhhbmtzLA0KVG9ueS4NCiANCiANCg== ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ------------------------------------------------------------------------ -------------------------------------------- The information contained in this e-mail is confidential and may be subject to legal professional privilege. It is intended solely for the addressee. If you receive this e-mail by mistake please promptly inform us by reply e-mail and then delete the e-mail and destroy any printed copy. You must not disclose or use in any way the information in the e-mail. There is no warranty that this email or any attachment or message is error or virus free. It may be a private communication, and if so, does not represent the views of Volante group Limited. This message has been checked by SurfControl ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm