phonesfor.blogg.se

Powershell set account expiration date
Powershell set account expiration date











powershell set account expiration date

You can also set the Identity parameter to a user or computer object variable, such as $, or pass a user or computer object through the pipeline to the Identity parameter.

powershell set account expiration date

You can identify a user or group by its distinguished name (DN), GUID, security identifier (SID), or Security Accounts Manager (SAM) account name. The Identity parameter specifies the user or computer account to modify. When you clear the expiration date for an account, the account does not expire. The Clear-ADAccountExpiration cmdlet clears the expiration date for an Active Directory user or computer account. To install addsadministration on your system please refer to this link.Ĭlears the expiration date for an Active Directory account. Clear-ADAccountExpiration is accessible with the help of addsadministration module.













Powershell set account expiration date