myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


           



UnknownSystem.hta

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> UnknownSystem.hta Page: [1]
Login
Message << Older Topic   Newer Topic >>
UnknownSystem.hta - 4/23/2008 5:41:11 PM   
rbennett806


Posts: 659
Score: 8
Joined: 6/14/2006
Status: offline
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!
Post #: 1
RE: UnknownSystem.hta - 4/23/2008 6:39:43 PM   
skissinger


Posts: 1676
Score: 103
Joined: 9/13/2001
From: Sherry Kissinger
Status: offline
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.

_____________________________

mofmaster@smsexpert.com (version 2007) | http://www.smsexpert.com | http://www.sccmexpert.com
Microsoft MVP - SMS

Inventory Manager 2007 is here!

(in reply to rbennett806)
Post #: 2
RE: UnknownSystem.hta - 4/28/2008 2:14:46 PM   
rbennett806


Posts: 659
Score: 8
Joined: 6/14/2006
Status: offline
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)...

(in reply to skissinger)
Post #: 3
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> UnknownSystem.hta Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.313