I am getting the same issue on windows 10. I use this function and was working perfect on window 7 and since migration to windows 10 does not work anymore. Any help is appreciated.
First index points to a site name, second index points to site cost.
Ha, Indeed! Thank you, Vadims. Those hex numbers confused me. And what about, for example DsQuerySiteCosts[5.3], what are those numbers in square brackets?
> What about autoenrollment for non domain joined machine?
Check this article from AskDS: Enabling CEP and CES for enrolling non-domain joined computers for certificates
I believe, these numbers are costs to particular AD site. First number is in hex format and decimal equivalent in parenthesis.
© 2008 - 2019 - Sysadmins LV. All rights reserved