Created
December 9, 2019 23:35
-
-
Save rezarahimian/b5fa4823802a1613c60624e51914375c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Providers = [System.Runtime.InteropServices.Marshal]::BindToMoniker("ADs:") | |
ForEach ($Provider in $Providers) | |
{ | |
$Provider.GetType().InvokeMember("Name", "GetProperty", $null, $Provider, $null) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment