How to disable users with expired passwordin AD with exception from UPN CSV list?

Steel Contributor

We have script below that disables AD users with expired password

 

Get-ADUser -Filter * -Properties PasswordExpired |

Where-Object PasswordExpired  | Disable-ADAccount

 

How do we disable users with expired password AD with exception from UPN CSV list?

 

Capture.JPG

 

 

 

 

0 Replies