Monday, March 9, 2009

[THIN] Re: Query Farm Name in User context

You could run a short bit of vbscript code to get the name – stick this code in a .wsf file and run with cscript filename.wsf –

--- start --

<package>

    <job id="">

        <reference object="MetaFrameCOM.MetaFrameFarm"/>

        <script language="VBScript">

Dim objFarm

Set objFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")

objFarm.Initialize(MetaFrameWinFarmObject)

WScript.Echo "MetaFrame Farm Name: " & objFarm.FarmName

            </script>

    </job>

</package>

 

Hopefully you can take it from there –

 

Here is a good place to start

 

http://support.citrix.com/article/CTX106305

 

And that should lead you on to the whole bunch of character building fun that is MFCOM which you could incorporate into vb6  from here http://support.citrix.com/article/CTX107029 and read about here - http://community.citrix.com/download/attachments/29851654/UltimateGuideToMFCOM.pdf?version=1

 

 

 

From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Stratton, Doug ISMC:EX
Sent: 09 March 2009 20:50
To: thin@freelists.org
Subject: [THIN] Query Farm Name in User context

 

Hi
We are using Citrix PS 4 and XA 4.5 and want to use our logon script to determine which Farm the user is on.  We also need to be able to determine if we are on one of the other Citrix farms that we don't manage.

What I am wondering is how can we determine the farm name with the logon scripts (visual basic 6) we use that the Users run so it has to be able to work in user context.

Anyone got some code as an example?  Or we I can look.

Thank you all again.
Regards,
Doug Stratton, Shared Service BC
Service Desk Email: 77000@gov.bc.ca
Service Desk Tel: (250)387-7000

 

No comments: