Basic XenApp question

Posted on 2011-10-26
Medium Priority
Last Modified: 2012-05-12
We have recently started connecting to servers at a remote office using Citrix XenApp version 11.  Some users use the program neighborhood desktop icon, some use the web client.

We have some Microsoft Access databases that create a folder for the current user when they run.  We use an executable that creates the folder named as the user (i.e. 'JSMITH") on the network folder that is created for every Citrix user which is 'W:\" in our scenario.

The executable (which is fired by the user when they want to open one of the access applications) always looks to see if the folder already exists, and if not, creates it, then opens the database that it drops inside of it...(the users 'front end' if you will...)

This usernamed- folder can really be thought of as something like a 'session' folder.  When the user logs out of Citrix, it is no longer really needed.  

Since it can be created each time, automatically, I am wondering if it makes sense to delete it at the end of the users session?  Some users may go weeks or months without using these databases....

So my questions is this:   is it possible to use a script to delete the users folder when they log off Citrix?  Is there a log off script like there is a login script for Windows?  As you can surely tell, I am not a network guy, so I am a novice in this area....   but I can write a vb script to delete the current users folder- just don't know how it would be triggered to run...

Thanks for any insight..
Question by:snyperj
LVL 34

Expert Comment

by:Paul MacDonald
ID: 37030675
I can't speak for Citrix, but Windows has the abiliity to launch scripts at logoff.

Accepted Solution

jdc1944 earned 1200 total points
ID: 37030699
I am a Citrix user not an admin but you can run scripts at logoff just as you can on startup.  I believe there are various different ways, registries, Active directory etc

I think a logoff policy in the registry could possibly look like this..
Key: HKLM\Software\Microsoft\WindowsNT\ CurrentVersion\Winlogon
Value: LogoffApp
Type: REG_SZ
Data: List of applications that are to be run, separated by commas.

However this would have to be done on every server.

Hope thats at least a start at answering your question
LVL 37

Expert Comment

by:Carl Webster
ID: 37030811
Hopefully your Citrix servers are in their own OU with their own Group Policies.  Just add a logoff script to delete the files and folder if they exist.
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.


Author Comment

ID: 37031875
ok, and when you say 'logoff script', that can be any kind of script?  In other words, if I provide our IT Dept with a simple .vbs script that deletes the user folder, they would be able to use that somehow, or does it need to be in some specific format?
LVL 37

Assisted Solution

by:Carl Webster
Carl Webster earned 800 total points
ID: 37031894
VBScript, batch file, command file, kix, etc etc.

Author Closing Comment

ID: 37038781

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question