Mat Grumpy Tech

This site is run by ads, you probably have ad-blocker. Me too, but you wouldn't believe how expensive hosting is. Why not buy me a coffee?

United Kingdon

85 posts

PowerShell: AD machine audits

#PowerShell

Today I was asked to provide evidence that we have LEM installed on all of our desktops.  Apparantly me saying it's all fine is…

Mat Grumpy Tech

PowerShell, Active Directory : Uncheck password does not expire

#PowerShell

If you have lots of accounts that have passwords set to never expire this script will hunt them out and correct that for you Import-Module ActiveDirectory…

Mat Grumpy Tech

PowerShell: Get last AD user login

#PowerShell

This is a little more tricky than it looks. Last  login is only stored on the DC that last authenticated the user, hence you need to…

Mat Grumpy Tech

PowerShell : System Audit (How to correctly use Invoke-Command for batch jobs)

#PowerShell

I rececently revisted an old script that i had build to audit flash versions. In this 200+ line script, I pulled the machine list from AD…

Mat Grumpy Tech