Created
January 29, 2016 04:24
-
-
Save jhamilton09/cbf3b5ef6279b31fc5d0 to your computer and use it in GitHub Desktop.
This file contains 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
# Get AD computers where attribute is not null | |
$PCs = Get-ADComputer -Filter {ms-Mcs-AdmPwd -like "*"} -Properties Name, ms-Mcs-AdmPwd, ms-Mcs-AdmPwdExpirationTime | sort Name | ft Name, ms-Mcs-AdmPwd, ms-Mcs-AdmPwdExpirationTime | |
$PCs | |
Write-Host $PCs.count "Computers with LAPS enabled" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment