Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Script that compares computers in active directory to computers in SCCM. Useful in seeind what in ad and CM are stale records.

Load the fuctions into memory:

. Get-ADCMComparison.ps1

Then execute with something similar to this:

Export-ADCMComparison -SiteServer -CMSite SS1 -CSVPath C:\Shared\Computers.csv

Or, Add a Date to the file name you export:

Export-ADCMComparison -SiteServer -CMSite SS1 -CSVPath C:\Shared\Computers_$(get-date -Format yyyyMMdd).csv

You can’t perform that action at this time.