Solved

Windows to automatically log off when Citrix session ends

Posted on 2013-02-07
3
1,102 Views
Last Modified: 2013-03-08
We currently use Citrix receiver 3.2 Enterprise which I have managed to get functioning with Pass through authentication over an ICA file using Windows Embedded machine. At the moment, I have the ICA file on the desktop to launch our Citrix full desktop session. Is there a way to log off Windows using a script when the Citrix session ends. I know there a service called Receiver.exe so is there a way to kick off a script to log off windows when this exe terminates? Only problem is the Receiver.exe file does not start until the ICA file is started.

Thanks all.
0
Comment
Question by:MSSC_support
3 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
I'm not sure about this but here are my 2 cents.. change the logon icon to execute a script i.e.
adjust as required.
--- citrix.ps1
start-process -wait <pathto ica> citrix logon
shutdown -l -t 0
---
citrix.vbs

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\progra~1\citrix\icacli~1\pn.exe /APP desktop", 1, True
Set WshShell = Nothing
shutdown -l -t 0
-----

http://bit.ly/UGJvJP
http://bit.ly/UGJB4k
0
 
LVL 23

Accepted Solution

by:
Coralon earned 500 total points
Comment Utility
Yes, this is fairly simple to do.  I answered this question before on this.  http://www.experts-exchange.com/Software/System_Utilities/Remote_Access/Citrix/Q_27830944.html

Scroll down, and you'll see my vbscript to do exactly this.

Coralon
0
 

Author Closing Comment

by:MSSC_support
Comment Utility
Great stuff
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

16 Experts available now in Live!

Get 1:1 Help Now