CmdID / PowerShell / Cmdlets / Set
Set-ADAccountExpiration
Sets the expiration date for an Active Directory account. Windows Server PowerShell reference
From the Windows Server PowerShell reference 10 parameters Its page in the reference
Parameters
-AuthTypeSpecifies the authentication method to use.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies the user account credentials to use to perform this task.-DateTimeSpecifies the expiration time for the account by using a DateTime value.-IdentitySpecifies an Active Directory account object by providing one of the following property values.-PartitionSpecifies the distinguished name of an Active Directory partition.-PassThruReturns an object representing the item with which you are working.-ServerSpecifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server.-TimeSpanSpecifies a time interval that begins at the current time.-WhatIf, -wiShows what would happen if the cmdlet runs.