Install-Module -Name ADEssentials -AllowClobber -Force
Force and AllowClobber aren't really nessecary but they do skip errors in case some appear.
And to update
Update-Module -Name ADEssentials
That's it. Whenever there's new version you simply run the command and you can enjoy it. Remember, that you may need to close, reopen PowerShell session if you have already used module before updating it.
The important thing is if something works for you on production, keep using it till you test the new version on a test computer. I do changes that may not be big, but big enough that auto-update will break your code. For example, small rename to a parameter and your code stops working! Be responsible!
- 0.0.7 - 3.08.2019
- Added Get-WinADLastBackup