Category Archives: Active Directory

Find undefiened networks in netlogon.log

To find undefined networks in your AD you can parse the netlgon.log files on the domain controllers. (This script will gather all errors you can of add some “If ($_.Error -like ‘NO_CLIENT_SITE*’) …” if you only want that kind of … Continue reading

Posted in Active Directory, PowerShell | Comments Off on Find undefiened networks in netlogon.log

Get-ADSites and create Site Based Collections

Missing an easy way to get AD-Sites from Powershell? They are listed under Sistes/Configuration with the objectClass = Site. So a simple LDAP-query does the trick. Then, with these sites it’s easy to create Device Collections in ConfigMgr based on … Continue reading

Posted in Active Directory, ConfigMgr, PowerShell | Comments Off on Get-ADSites and create Site Based Collections