Link to home
Start Free TrialLog in
Avatar of itnifl
itniflFlag for Norway

asked on

ActiveX component can't create object: 'MetaFrameCOM.MetaFrameFarm'

script.vbs(233, 2) Microsoft VBScript runtime error: ActiveX component can't create object: 'MetaFrameCOM.MetaFrameFarm'

Wich is this line: Set theFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")

I tried installing this:
http://community.citrix.com/display/xa/XenApp+Management+SDK

But it didn't help.

Any suggestions?
Avatar of Sekar Chinnakannu
Sekar Chinnakannu
Flag of Singapore image

login to server and run this command as admin wscript -regserver. Also can you check more details in event log and if possible provide the script to identify the issue. If it related to license issue then check https://support.citrix.com/article/CTX122856/
Avatar of itnifl

ASKER

It works ona 5.0 farm, but not a 6.0 farm. Didn't find anything relevant in the eventlog. There is no license issue apparent.
SOLUTION
Avatar of Sekar Chinnakannu
Sekar Chinnakannu
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itnifl

ASKER

I have written a script that automates the reset of terminal server profiles. The script is written in VisualBasic, thus I would prefer to not have to rewrite it in powershell. But I will if that is the only option. It is however, completely irrelevant what I want to use the script for. My goal in this thread is to find a way to initiate a type MetaFrameCOM.MetaFrameFarm object in a VB script so that I can use it in different farm versions, not only 5.0.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itnifl

ASKER

Your answers are more then good enough.
Ultimately I would log off the user to reset his profile.
For the information I found that this is done this way in Xenapp 6 and above:
stop-xasession -InputObject (get-xasession -Account domain\useraccount)

I will have to create a separate powershell script for farms that are 6.0 and above.