Posts tagged with Get-Date

PowerShell: Remove-ADComputer v. Remove-ADObject

April 27th, 2018 by and tagged , , , , ,

So, as I mentioned the other day, we needed to do some major cleanup of defunct and orphaned computer accounts. Most computers that hadn’t been logged in to in the last year needed to go. And there were a LOT of them! Certainly more than anyone wanted to try to do in the GUI. So, […]

Posted in Active Directory, IT Admin, PowerShell | 4 Comments »

PowerShell: Finding Orphaned Computer Accounts in AD

April 23rd, 2018 by and tagged , ,

The other day we decided it was time and more to do some cleanup of orphaned computer accounts in our AD. We are about to do some AD restructuring, and figured it was a good opportunity to clean up and remove old computer accounts for machines that no longer existed. Now there are probably lots […]

Posted in Active Directory, Network Administration, PowerShell | No Comments »

PowerShell: Sending password expiration notices via GMail – Part 3

December 20th, 2016 by and tagged , , , , , ,

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 | No Comments »

PowerShell: Sending password expiration notices via GMail – Part 1

December 13th, 2016 by and tagged , , , ,

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