POWERSHELL - Scripts to reset the AdmPwdExpirationTime for AD Computers in LAPS

LAPS powershell script to reset the AdmPwdExpirationTime for AD Computers

Import-Module ActiveDirectory
Import-CSV "C:\Test.csv" | ForEach-Object {
$Computer = $_.ComputerName

Set-ADComputer -Identity $Computer -Clear ms-Mcs-AdmPwdExpirationTime

 } # | Out-File -filepath "C:\output.txt"

Comments

Popular posts from this blog

Troubleshooting Netlogon Error Codes

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

Troubleshooting AD Active Directory Replication Error 8456 or 8457: "The source | destination server is currently rejecting replication requests"