[THIN] Re: MFCom script for Published Desktop/Published App
- From: "Joe Shonk" <joe.shonk@xxxxxxxxx>
- To: <thin@xxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 08:54:31 -0700
As mentioned before, checking the explorer.exe process is the easiest. You
can test if the app is a desktop or publish app by looking at
WinApp.PNAttributes. If you're doing this with a logon scripts, your users
will also need access to view session information in the CMC.
Joe
_____
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Andrew Wood
Sent: Friday, April 29, 2005 6:02 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] MFCom script for Published Desktop/Published App
We're working on a script as we need to determine at logon whether the user
is running a published desktop or a published application.
We've an MFCOM vb script as follows:
-----------------
Set objShell = Wscript.CreateObject("Wscript.Shell")
Set objFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")
objFarm.Initialize 1
For Each objSession In objFarm.Sessions
If objSession.SessionName =
objShell.ExpandEnvironmentStrings("%SessionName%") Then
MsgBox(objSession.AppName)
End If
Next
-----------------
However for this to work the user needs to be a MF Administrator with this
custom permission Applications | Sessions | View Session Management...which
is less than desirable..
Does anybody know any other way of distinguishing between a published
desktop and a published application at logon in a user context?
tia
----------------------------------
Andrew Wood
Sunderland
United Kingdom
- References:
- [THIN] MFCom script for Published Desktop/Published App
- From: Andrew Wood
Other related posts:
- » [THIN] MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- » [THIN] Re: MFCom script for Published Desktop/Published App
- [THIN] MFCom script for Published Desktop/Published App
- From: Andrew Wood