December 20th, 2016 by Charlie Russel and tagged Active Directory, DateTime, Get-Credential, Get-Date, GMail, Here-String, PowerShell
In Part 1 of this series, I showed you how to identify users whose password was about to expire. Then in Part 2 of the series, I took that list of users and sent email to them using gmail-hosted company email. This third part of the series pulls all that together into a single script, […]
Posted in Active Directory, Network Administration, PowerShell, PSCredential, Security | Comments Off on PowerShell: Sending password expiration notices via GMail – Part 3
December 13th, 2016 by Charlie Russel and tagged Active Directory, DateTime, Get-Credential, Get-Date, PowerShell
In a perfect world, users would never forget their password, and never forget to change it before the expiration date. But we don’t live in that perfect world. I covered how to unlock AD accounts earlier in this post, but now I’d like to talk about how to first find the users whose accounts are […]
Posted in Active Directory, Network Administration, PowerShell | Comments Off on PowerShell: Sending password expiration notices via GMail – Part 1
October 4th, 2016 by Charlie Russel and tagged Get-Credential, PowerShell, PSCredential, SecureString
If you routinely have to log into a separate domain, it can be a nuisance to always have to run Get-Credential. Plus writing scripts with a -Credential parameter is a nuisance because if you call Get-Credential in the script, it will always prompt you. I run a separate lab network here, with an Active […]
Posted in Annoyances, Network Administration, PowerShell, PSCredential | Comments Off on PowerShell: Get-Credential from a file