Azure / ArcEnabledServersGroupPolicy

Guidance and sample code to perform at-scale onboarding of servers to Arc via Group Policy
MIT License
9 stars 15 forks source link

Faster way to check AD site name with native PowerShell error handling #28

Open Borgquite opened 7 months ago

Borgquite commented 7 months ago

As mentioned in #27, currently the script shells out to nltest.exe which is slow and does not provide detailed errors if it fails.

Using the built-in Windows ADSystemInfo COM object returns in an instant, and allows for normal PowerShell error handling.

Fixes #27