Roberto Alves

Scripting and server based computing

Considerations about Link consumption for XenApp/TS

To measure the Citrix XenApp (Presentation Server/Metaframe) or Terminal Services link consumption for an application the best is: publish to users and watch. Yes! Users are totally unpredictable and is very difficult to know every thing that they can do in some scenarios.

But, you always need know how much bandwidth an applications needs to be workable or how many users you can fit in a specific link. To do this you can simulate a user working in your workstation through XenApp or Terminal Services and watch the link traffic in your network card with any link analysis tool that show results in charts. Doing this, you can get some estimate results that can be useful on starter projects.

If you intend give internet access through XenApp or Terminal Services to your users, forget the analysis because anything that you write you will be designated to the near litter available, when an user open a web site with animations or high definition graphs.
Continue reading

Most hidden configuration on Citrix consoles (SMTP email alerts)

To receive emails from Citrix Resource Manager, you can set a MAPI or a SMTP address. On many organizations, is much more simple set a SMTP address than configure MAPI but since Metaframe XP 1.0, Citrix insist on “hide” this configuration under a context menu on Resource Manager option of Presentation Server Console (Java).

Even on XenApp 5, the option still there. Is funny because is total different path of Email tab configuration on Resource Manager and is a Properties menu dedicated only to this option. Forgetting the fact that this console still existing, splinting configurations and administration between too consoles.
Continue reading

Automating project documentations with AutoIT

One picture say more than a thousand words. Because this in some cases I like to include a lot of images on my project documentations. Generally, these pictures are PrintScreens of consoles and their configurations and diagrams that explain some funcionality.

Benefits when you use pictures instead pure text on project documentations:

  • You are sure that all configurations of that screen was documented;
  • It’s easy to read and find what configuration you want (if you organize on chapters);
  • Is more simple to update the documentation, after change configurations;
  • Is more clear that you made the documented configurations;
  • Using scripts you can document everything using a read-only console, without “admin” access to controls or configurations;

Continue reading

Forcing PN Agent address with Group Policies

On last year, with Presentation Server client version 10.x Citrix finally introduced a template .adm to administration of clients configurations through Windows Group Policies. This icaclient.adm template is very useful to ensure to you that all configurations were applied to all users that you want.

With this .adm you can do somethings like:

  • Configure single Sign-On for Web Interface
  • Set other user authentication configurations
  • Force policies of drive mapping, printers, microphone, clipboard, etc
  • Force graphics settings like SpeedScreen Browser Acceleration and SpeedScreen Latency Reduction
  • Simple client version control

*Remember that some configurations will Continue reading

.ADM with Regional Settings using United Kingdom as default

Is very common find applications that works only with a specific configuration on Control Panel / Regional Settings.  And change this configuration on all users profile can be very big headache, then save these lines below as a .adm file and include on your policy.

Default settings are configured to British standard but you can change the values as you wish. To be easier, you can set all configurations on your Regional Settings and compare the values on HKEY_Current_UserControl PanelInternational on your Registry.

CLASS USER
CATEGORY “Control Panel”
POLICY International
KEYNAME “Control PanelInternational”

Continue reading

.VBS Copying files to many locations

This is a very simple script that copies a folder from a specific path to all servers listed on servers.txt file.

There is a file called progress.htm that runs an activeX control that shows a progress bar, that increases when the copy is done on each server.

On Error Resume Next

source_server = “machine_name”
source = “c$InstallCPS45HF”

Dim server()

Set objFSO = CreateObject(“Scripting.FileSystemObject”)

Continue reading

.VBS to remap network drivers after file server migrations

Very useful on File Servers migrations, this script was created and used on login script of 1000+ users after migration from Novell file server to a new Windows file server. The script reduces the calls on service desk after migration, reading what mapped drivers each user has and creating a new mapped driver.

Basically, you need specify share names that you wanna modify and put this script to run on login script. After a file server migration, users run login script and remap automatically network drivers.

Continue reading

.VBS to compare applications version on all servers

This is a very, very and very simple inventory tool. But can be very useful on sbc environments. This script checks the list of applications on Add/Remove Programs of each server, and writes a result in a table inside a html file.  Then, you can compare if all servers has same software installed or same updates!

To have a reliable Citrix or Terminal Services environment, you need ensure that all servers on each silo are equal, to all users get same applications, updates, etc.

Continue reading

.VBS to search non-auto created printers on profiles

I made little modifications on this script created by Jakob Heidelberg to search for printers manually created on user profiles. This is very usefull when you wanna ensure that eveybody has only auto created printers, from Citrix or ThinPrint.

This script load ntuser.dat on each profile, check some registry keys, write a log and unload ntuser.dat. Some users can have problems to load their profiles if you use this script on the same time that they try logon.

Continue reading