Accessing the TSEnvironment
I am building a couple of interfaces for OSD automation in CCM 2007\2012 and I have run into issues accessing the COM object from anything launched with ServiceUI. Is there a way I can make the TSEnvironment COM object available to scripts (or HTA) opened with ServiceUI?
May 11th, 2012 6:05pm

have you seen this post from Cameron ? http://blogs.technet.com/b/cameronk/archive/2011/01/25/can-i-use-serviceui-exe-to-launch-other-programs-besides-the-udi-setup-wizard.aspx Step by Step ConfigMgr 2007 Guides | Step by Step ConfigMgr 2012 Guides | I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2012 7:22am

Yes, and that is exacly how I am launching the HTA and a test VBS. What I am seeing is that the Microsoft.SMS.TSEnvironment object will not load when the HTA or VBS scripts are launched with ServiceUI.exe. If I call them without it, the object loads and I have access to the stack....
May 14th, 2012 9:29am

I figured it out. Must have been something in my HTA that was in a bad place because rewriting a new one from scratch seems to have fixed it.
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2012 4:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics