Brian Madden Logo
Your independent source for application and desktop virtualization.
advertisement

Scripts work great on XP, crash and burn on Vista, in the Scripting / Automation forum on BrianMadden.com

rated by 0 users
Answered (Verified) This post has 1 verified answer | 8 Replies | 2 Followers

Top 10 Contributor
Points 48,501
Dan Murray posted on Wed, Apr 8 2009 10:58 AM

I've got some scripts that I use on a regular basis to perform some of the more mundane tasks.  We are moving to Vista, and in testing my scripts I have discovered that none of them seem to run in a Vista environment.  I have all the same components installed, but every script errors out with "Microsoft VBScript runtime error: ActiveX component can't create object: 'MetaFrameCOM.MetaFrameFarm'". I'm guessing it is a permissions thing, but I'm using the same account, etc, so there has to be some subtle thing in Vista that's getting in the way.  Any ideas out there?

Thanks in advance!

Dan

 

Why is it called "Common Sense"? It doesn't seem all that common!

  • | Post Points: 20

Answered (Verified) Verified Answer

Top 10 Contributor
Points 48,501
Verified by Dan Murray

OK!  I finally figured this mess out.

It turns out that on my XP workstations, I install both the Presentation Server Console and the Access Management Console.  This provides me with the appropriate MFCOM hooks to communicate with the farm.

On Vista, the WMI service no longer exists, which the AMC install needs.  So... the AMC won't install, so the MFCOM components were missing.  I ended up downloading V 5.0 of the MPSSDK and installed that.  NOW it works!  In the process I found a Citrix document that states the AMC is not currently supported on Vista. NOW THEY TELL ME! Stick out tongue

Oh well.. it works.  That's all that matters.

Thank to everyone for their suggestions.

Dan

 

Why is it called "Common Sense"? It doesn't seem all that common!

  • | Post Points: 40

All Replies

Top 500 Contributor
Points 405

Check your DCOM configuration and make sure 'Impersonate' is being set for your impersonation level.

You may also need to check the local/remote launch/activation permissions either globally or directly on MFCOM.

 http://community.citrix.com/display/xa/How+To+-+Configuring+DCOM+for+MFCOM

 

  • Post Points: 20
Top 10 Contributor
Points 48,501

It should al be good, since I can run the exact same script on an XP workstation and it runs flawlessly.  It's only from a Vista workstation where I have trouble.  Unless DCOM is sensitive to the OS?

Why is it called "Common Sense"? It doesn't seem all that common!

  • | Post Points: 20
Top 500 Contributor
Points 405

DCOM must be configured properly on both the client and the server.  Typically the server does not require any further configuration unless you are not an administrator.

Your workstation will almost always need to be configured.  With Windows XP SP2 and Vista, DCOM security is a bit tighter.

On your vista machine run dcomcnfg and proceed to set the impersonation level, this is probably all that needs to be done.  If that continues to fail take a look at the launch/activation permissions.

  • | Post Points: 20
Top 10 Contributor
Points 48,501

This might be a stupid question, but where in the DCOMCNFG utility do you set the impersonation level?

Why is it called "Common Sense"? It doesn't seem all that common!

  • | Post Points: 20
Top 500 Contributor
Points 405

Expand Compnent Services >> Computers

Right click on My Computer and select properties

Default Properties tab there is a 'Default Impersonation Level' that needs to be set to 'Impersonate'

  • | Post Points: 5
Top 10 Contributor
Points 48,501
Verified by Dan Murray

OK!  I finally figured this mess out.

It turns out that on my XP workstations, I install both the Presentation Server Console and the Access Management Console.  This provides me with the appropriate MFCOM hooks to communicate with the farm.

On Vista, the WMI service no longer exists, which the AMC install needs.  So... the AMC won't install, so the MFCOM components were missing.  I ended up downloading V 5.0 of the MPSSDK and installed that.  NOW it works!  In the process I found a Citrix document that states the AMC is not currently supported on Vista. NOW THEY TELL ME! Stick out tongue

Oh well.. it works.  That's all that matters.

Thank to everyone for their suggestions.

Dan

 

Why is it called "Common Sense"? It doesn't seem all that common!

  • | Post Points: 40
Top 500 Contributor
Points 405

Ah, I assumed you had already installed the SDK on your Vista machine.  Glad it's working for you.

  • | Post Points: 20
Top 25 Contributor
Points 7,839

Vista...blech.

  • | Post Points: 5
Page 1 of 1 (9 items) | RSS