roomloading.blogg.se

Powershell set account expiration date
Powershell set account expiration date








Clicking on the Ticks property gave me the answer that I was hoping for. So, I set off to make it one.Īnother issue is once I have it in a DateTime object, how do I change it back into this 100-nanosecond format? Doing a little research of the DateTime object on MSDN gave me the class information for this object. OK, who thinks of this stuff? I was hoping this would be a System.DateTime object, but we are not so lucky. It is the number of 100-nanosecond intervals from January 1, 1601. Here is what I found out about the AccountExpires attribute. I did a little internet research on the properties of an Active Directory User Object. Take a look at the AccountExpires property. The user needed to advance all user account expiration dates by 90 days from the current date. In truth, I had no idea how complicated that this could be. My intent was to demonstration some research methods using MSDN.

powershell set account expiration date

This is a question that I took from and presented to my PowerShell class.










Powershell set account expiration date