PowerShell

A collection of powershell what I have done

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

PowerShell + Confluence: Update an Atlassian Confluence page from PowerShell

#PowerShell

Something a with a little more meat on it for those of you that have used Atlassian Confluence. I imagine this would usually be done in…

Mat Grumpy Tech