Step by Step Directions for Techs
I spend a lot of time trying to automate my life. Some of it is work, but a lot of it is personal. Most of it is trivial.
Somewhere I read about a guy that writes scripts to do anything at work that takes more than 15 minutes. Basically, he was automating his job. After reading that I decided to start doing the same thing. However, it involves my home life too. Turning off (or on) lights, dealing with schedules, computer maintenance, and things like that. So this will be a bit of everything.
I am adding a section that just concerns what I have found works. In some cases, there will be some source code I post on GitHub and link here.
I know there have to be thousands of these articles, but I can never find the information when I need it. So here it is:
Get-MSOLUser -UserPrincipalName | Select PasswordNeverExpires
You need a couple things (from https://technet.microsoft.com/library/dn975125.aspx):
These steps are required once on your computer, not every time you connect. However, you’ll likely need to install newer versions of the software periodically.
1. Install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW.
2.Install the 64-bit version of the Windows Azure Active Directory Module for Windows PowerShell: Windows Azure Active Directory Module for Windows PowerShell (64-bit version).