Keep Test Computers in Test collection.

 

When testing your different deployment scenarios eg. Task Sequences, you normally create a Test collection, and associate a test PC to that collection.

Now ones the PC has successfully carried out the steps in the TS, you might want to change some thing, and then run the TS again. You now find that the test PC does not work any more, and you have to associate the PC all over again.

Why does this happen!

The PC receives a new GUID during deployment, and therefore, the original associated PC will become obsolete. The PC (obviously still with the same MAC and name) will be re quarried by SCCM and placed in a collection according to what ever discovery setup you are running.

This is actually an good thing as we normally do not want our image TS to be advertised to the PC ones it has been re-imaged, unless we are in a test  environment…

What do we do to work around this!

Fairly simple actually. We create a query  in our collection that put’s the test PC back in our Test collection.

1. Right click your collection and choose Properties

2. On the Membership Rules tab, click the yellow cylinder  image to create a new Rule.

3. Type in a name, and choose System Resource  as Resource class, then click Edit Query Statement

image 

4. On the Criteria tab, click the yellow starburst image

5. Make sure Criterion Type: is Simple Value,  and click Select…

6. Set Attribute class: to System Resource, and Attribute: to Name

image

7. back in Criterion Properties,  set Operator: to is equal to and in Name: type in the name of your Test PC

image

now all you have to do is update the collection membership, and the PC with the new GUID will be placed in your test collection. You will still se the old PC which is obsolete, where as the newly queried PC is Active.

Be aware that this query does not remove the obsolete PC’s so you could wind up having several of the same PC name in your collection, but you can always sort the Obsolete column to se if your Test PC is active

image

 

 

Advertisements
This entry was posted in SCCM. Bookmark the permalink.

2 Responses to Keep Test Computers in Test collection.

  1. Aby says:

    Can anybody help me solve the issue I am having with SCCM? Below is a trace of SMSPXE.log. Basically the SMSBIOS get modified
    and I receive a no advertisement found error and then device has been rejected.
     
     
    ![LOG[Executing LookupDevice(46746E94-D140-497A-8C46-5463A8F006FD, FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF)]LOG]!><time="13:30:50.950+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="database.cpp:394"><![LOG[CDatabaseProxy :: LookupDevice succeeded: 0 0 0 0]LOG]!><time="13:30:50.950+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="database.cpp:444"><![LOG[MAC=FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF SMBIOS GUID=46746E94-D140-497A-8C46-5463A8F006FD > Device not found in the database.]LOG]!><time="13:30:50.950+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="pxehandler.cpp:349"><![LOG[[192.168.170.007:67] Recv From:[000.000.000.000:68] Len:548 74f1fc]LOG]!><time="13:34:43.031+300" date="07-29-2008" component="smspxe" context="" type="0" thread="1892" file="smspxe.cpp:663"><![LOG[Executing LookupDevice(4C4C4544-0038-3110-8033-C8C04F524731, 00:1E:C9:4F:88:FF)]LOG]!><time="13:34:43.031+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="database.cpp:394"><![LOG[CDatabaseProxy :: LookupDevice succeeded: 0 0 434 1]LOG]!><time="13:34:43.031+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="database.cpp:444"><![LOG[MAC=00:1E:C9:4F:88:FF SMBIOS GUID=4C4C4544-0038-3110-8033-C8C04F524731 > Device found in the database. MacCount=1 GuidCount=0]LOG]!><time="13:34:43.031+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="pxehandler.cpp:341"><![LOG[[192.168.170.007:67] Recv From:[000.000.000.000:68] Len:548 75024c]LOG]!><time="13:34:50.328+300" date="07-29-2008" component="smspxe" context="" type="0" thread="1892" file="smspxe.cpp:663"><![LOG[Ignoring req from [000.000.000.000:68] Dest Server:[192.168.170.001]]LOG]!><time="13:34:50.328+300" date="07-29-2008" component="smspxe" context="" type="0" thread="1892" file="pxeutil.cpp:114"><![LOG[[192.168.170.007:4011] Recv From:[192.168.171.048:68] Len:548 26c623c]LOG]!><time="13:34:50.328+300" date="07-29-2008" component="smspxe" context="" type="0" thread="4764" file="smspxe.cpp:663"><![LOG[[192.168.170.007:4011] Recv From:[192.168.171.048:68] Len:299 26c72f4]LOG]!><time="13:34:53.578+300" date="07-29-2008" component="smspxe" context="" type="0" thread="4764" file="smspxe.cpp:663"><![LOG[Executing GetBootAction(434, SCCM001)]LOG]!><time="13:34:53.578+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="database.cpp:519"><![LOG[No Boot Action for Device (434) found]LOG]!><time="13:34:53.578+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="database.cpp:537"><![LOG[ProcessDatabaseReply: No Advertisement found in Db for device]LOG]!><time="13:34:53.578+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="pxehandler.cpp:501"><![LOG[[192.168.170.007:4011] Recv From:[192.168.171.048:68] Len:299 26c83ac]LOG]!><time="13:35:13.328+300" date="07-29-2008" component="smspxe" context="" type="0" thread="4764" file="smspxe.cpp:663"><![LOG[MAC=00:1E:C9:4F:88:FF SMBIOS GUID=4C4C4544-0038-3110-8033-C8C04F524731 > Device has been rejected]LOG]!><time="13:35:13.328+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="pxehandler.cpp:1884">

  2. Unknown says:

    This line is the issue <![LOG[ProcessDatabaseReply: No Advertisement found in Db for device]LOG]!><time="13:34:53.578+300" date="07-29-2008" component="smspxe" context="" type="0" thread="5608" file="pxehandler.cpp:501">It looks like the machine isnt in the collection your advertising to. If its a test machine then the blog above is very useful work around. If you PXE boot to the unknown computers collection, image a machine then this machine is no longer unknown. Hence trying to do the same again will result in this log error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s