Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Query SCCM Show only computers in AD

$
0
0

In sccm2012 we synchronizes computeraccounts with “active directory Group Discovery”. We synchronizes some OU’s.

In the AD someone throw all de computers away who are no longer in our Company. Now I want Cleanup all the computers who are in SCCM and not in the AD.

 I make a collection with this Query:

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemOUName = "Domain/COMPUTEROBJECTEN/CLIENTS/Windows7"

The result is that I get all the computers how are in SCCM because it look at the field "Distinguished Name" that is saved in SCCM and it did not really look into the AD.

Some now how to fix that?


Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>