UnknownSystem.hta (Full Version)

All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager



Message


rbennett806 -> UnknownSystem.hta (4/23/2008 5:41:11 PM)

Is anyone using the "UnknownSystem.hta" script from the SCCM 2007 SDK (http://www.microsoft.com/downloads/details.aspx?FamilyID=064A995F-EF13-4200-81AD-E3AF6218EDCC&displaylang=en)? Either that or the custom hook (ZTIMediaHook.wsf) used in conjunction with bootable media?

I'm running into an issue that I hope someone has seen and resolved. I'm attempting to get the "UnknownSystem.hta" file working (the ZTIMediaHook.wsf file requires me to reboot the machine to get it to recognize OS advertisements so I decided to try the UnknownSystem.hta script) as a base for a custom front end that I can either use from my console machine, or integrate into the bootable image installation CD. Unfortunately, the process seems to connect to everything fine and make a record within the Configuration Manager system, but it's unable to make a direct membership rule to add it to the collection I specified. I get this error in the HTAApplication.log file:
.......
4/23/2008 4:27:44 PM - Importing this unknown system into Configuration Manager
4/23/2008 4:27:44 PM - Successfully added machine 'Test1'. Resource ID = 171615
4/23/2008 4:27:44 PM - --------------------------------------------------------
4/23/2008 4:27:44 PM - Adding this machine to the specified collection
4/23/2008 4:27:44 PM - Failed to create a SMS_CollectionRuleDirect instance. (6)
4/23/2008 4:27:44 PM - Failed to add the machine to the collection with error: 6.


So I then have to go out, make a direct membership rule to bring in the added computer (so I can delete it and run another test).

I can import computer information machine by machine, or by using a .CSV file, so I can't see that it's any sort of permission issue on my collection (I also tried building a new collection; with the same results). Anyone have any ideas or suggestions?

Thanks!




skissinger -> RE: UnknownSystem.hta (4/23/2008 6:39:43 PM)

Maybe it's just timing?  The resourceID of 171615 was created at 4:27:44, and at 4:27:44 you're trying to add resourceID 171615 to a collection--maybe it just needs a second or two for the resourceID to be available?  Since it's a .wsf, should be able to use a wscript.sleep xxx to have the script sleep for a few seconds before trying to add the new resourceID.




rbennett806 -> RE: UnknownSystem.hta (4/28/2008 2:14:46 PM)

Well apparently Microsoft needs to revamp this HTA script. Simply making the script sleep doesn't fix the problem. The quick fix is to go in and comment out Line 480. Once you do that it will hopefully work (I'm going to dig deeper into the code when I get a chance, but at least I got the basics working now)...




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.234375