Hi,
You can refer to the following steps to do that in Active Directory Users and Computers:
Open ADUC->Click View->Advanced Features, click Users in the domain name, right click the user you want to setup, click ‘Properties’->‘Account’
tab, uncheck any option in the ‘Account options’, check ‘End of’ in the ‘Account expires’ and edit the ‘End of’.
Hope this helps.
Thanks
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.