Test AD authentication with Powershell

A quick tip to test AD auth with Powershell:

$UserName = 'xxxx'
$Password = 'yyyy'

Function Test-ADAuthentication {
    param(
        $username,
        $password)
    
    (New-Object DirectoryServices.DirectoryEntry "",$username,$password).psbase.name -ne $null
}

Test-ADAuthentication -username $UserName -password $password

More articles

Docker networking :)

Docker networking is just awesome. -if you enjoy networking. Especially check out the IPVLAN L3 functionality, it is really nice. Learn

Read More »