Powershell: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 4: Line 4:


<code>Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires</code>
<code>Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires</code>
<hr>
Force the DC to sync the password
<code>start-adsyncsynccycle -policytype delta</code>

Revision as of 15:41, 8 May 2024

POWERSHELL COMMON STUFF


Check if the Password is Expired

Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires


Force the DC to sync the password

start-adsyncsynccycle -policytype delta