PowerShell

A collection of powershell what I have done

PowerShell: Checking the status of domain registration with Openprovder

#PowerShell

Building on top of what I did yesterday we can now move onto some of the more interesting parts of the Openprovider API Now we can…

Mat Grumpy Tech

PowerShell: Identify unused GPO with ZZZ_ - REVISITED

#PowerShell

Sometime ago now I posted this which checks all your GPO's and renames any that are un-linked with the prefix ZZZ_, very handy. It has one…

Mat Grumpy Tech

PowerShell : Authenticating to the Openprovider API

#PowerShell

I am currently working on what should be a fun little script that will eventually make its way on to here. The parts of this script…

Mat Grumpy Tech

PowerShell : Quick Windows Software Audit

#PowerShell

A while ago I publised a lovely little script on how to run 'Invoke-command' on arrays of machines quickly to get results quickly You can find…

Mat Grumpy Tech

PowerShell, Confluence : Simple hardware audit but pushed into Confluence

#PowerShell #Confluence

Ok here is a big one for you. Its in functions so you should be able to split it out and use the bits you need…

Mat Grumpy Tech

PowerShell, Hyper-V : Identify orphaned VHDX files

#PowerShell #Hyper-V

If you have a Hyper-V cluster of just a lot of VM's on a standalone Hyper-V server keeping track of all the virtual hard disks can…

Mat Grumpy Tech

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 not enough…

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