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!
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!
Oh well.. it works. That's all that matters.
Thank to everyone for their suggestions.
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
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?
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.
This might be a stupid question, but where in the DCOMCNFG utility do you set the impersonation level?
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'
Ah, I assumed you had already installed the SDK on your Vista machine. Glad it's working for you.
Vista...blech.