Basic XenApp question

Posted on 2011-10-26
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 33

    Expert Comment

    I can't speak for Citrix, but Windows has the abiliity to launch scripts at logoff.
    LVL 2

    Accepted Solution

    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 36

    Expert Comment

    by:Carl Webster
    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.

    Author Comment

    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 36

    Assisted Solution

    by:Carl Webster
    VBScript, batch file, command file, kix, etc etc.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    TechValidate Research on Citrix NetScaler

    Are you looking for an ADC. See what people like you say about Citrix NetScaler. Visit this site to find TechFacts, Charts and Case Studies.

    #Citrix #POC #XenDesktop #vCenter #VMware #ESX
    Citrix XenDesktop 7.6 Citrix Policies Graphics
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now