Citrix XenApp 6.o - Restrict access Time of Day

Is there a way to restrict access to a published application for certain time of the day and logoff any users that have the app running.  Still want users to be able to run other published apps.
itg_adminAsked:
Who is Participating?
 
CoralonConnect With a Mentor Commented:
The scheduling load evaluator will do the trick as far as limiting the time of day the app can be launched.

As for logging people off that is trickier.  The easiest way to do this is to write a wrapper script for your application.

From a pseudo-code point of view.. you will basically:

1. check time
     if time is outside of time frame - logoff
2. launch application
3. enter loop
     check time periodically, if outside of time frame - logoff

The only thing that might get you is if you have session sharing going and there are other apps for the user running at that time.  Those would get logged off.

Another possibility if your application can stand to be terminated ungracefully, is to write a script as a service that checks all the running processes and terminates your process if it is outside of the timeframe.  (I've done this sort of thing before in Winbatch).

Coralon
0
 
Ayman BakrSenior ConsultantCommented:
What you can do is disconnect or end a session if the idle time of the user is reached to a certain threshold. You can do this from the sessions tab of the Active Directory user's object.

However, I am not aware of a restriction for certain time of a day on Citrix.
0
 
Carl WebsterCommented:
You can test using a Load Evaluator:

http://support.citrix.com/proddocs/topic/xenapp65-admin/lm-rules-list.html

Scheduling
Schedules the availability of selected servers or published applications. This rule sets the weekly days and hours during which the server or published application is available to users and can be load managed.
0
 
joharderCommented:
If the app(s) that you don't want to be available after hours are housed on distinct servers/worker group than the other apps, it might be easiest to configure a server reboot and its respective warning notifications so that the user doesn't lose work when the application(s) suddently become unavailable.  Being that you said you don't want anyone to use the app(s) during off hours, that gets you everyone off the server and with a reboot bonus.

However, if the after-hours app(s) are loaded on the same server, this would not work.  In that case, Coralon's idea would work just fine but you'd want to disable session sharing in the registry.  Please think twice about disabling session sharing because overall it is a very good feature.  Do some testing first!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.