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
function Test-ADAuthentication { | |
<# | |
.SYNOPSIS | |
Creates a connection to DirectoryServices using the provided username and password. | |
.DESCRIPTION | |
Creates a connection to DirectoryServices using the provided username and password. If the connection is successful, returns $true, else $false. | |
.PARAMETER Username | |
The username to test. |