This is a question that I took from PowerShell.com and presented to my PowerShell class. My intent was to demonstration some research methods using MSDN. In truth, I had no idea how complicated that this could be. The user needed to advance all user account expiration dates by 90 days from the current date. Take a look at the AccountExpires property. I did a little internet research on the properties of an Active Directory User Object. Here is what I found out about the AccountExpires attribute . It is the number of 100-nanosecond intervals from January 1, 1601. OK, who thinks of this stuff? I was hoping this would be a System.DateTime object, but we are not so lucky. So, I set off to make it one. Another 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. Clicking on the...
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.