
Here’s another very useful script which simply lists all of your users in Active Directory, sorted by when their passwords were last changed. Great for checking if your password policies are actually being enforced… Import-Module ActiveDirectory #This may be done automatically when issuing the next line Get-ADUser –Filter * -Properties PasswordLastSet, PasswordNeverExpires | Sort PasswordLastSet
Today I had to try and find a virtual machine given its MAC address on a non-clustered Hyper-V environment. Here’s a quick PowerShell script to do just that! import-module hyper-v $Servers = @(“server1”,“server2”,“etc”) $results = @() foreach ($hvs in $Servers) { Get-VM –Computername $hvs | Get-VMNetworkAdapter | select VMName, MACAddress ,ComputerName | foreach-object { $out
Recently I was in a situation where I needed to demonstrate an Android App to a client, but didn’t have an Android device with me. I did however, have a Windows tablet with an internet connection to my development machine which does have an Android device, albeit a virtual one! Here’s how I set it
Hyper-V is amazing – you can do pretty much anything with a VM when it’s online now – even move it to an entirely new host with no shared anything. Apart from change the amount of memory in the VM! (Yes, I know about dynamic memory – still don’t like it. I’ve had too many
I had an example over the weekend whereby I needed to run a PowerShell command at a certain time due to a maintenance window. Rather than using task scheduler, as this was a one-off, I decided to use PowerShell to achieve this. Unfortunately, PowerShell does not natively have a ‘wait-until time’ cmdlet, so here’s the
Sometimes you just want to see how much free memory is on each of your cluster nodes. Here’s a quick powershell line to report that back:

Around this time of year, I often get asked which laptops I recommend people buy for their kids (or themselves!) After some extensive research, here is my top 10! The criteria here was must have a DVD drive, not for gaming, fairly quick and look nice. Screen CPU RAM Disk Price Link 15 i3 4g
System Restore – a very useful tool when it comes to recovering from a bad program install or botched update is disabled by default in Windows 10.
Is your computer or laptop showing its age? Can you make the tea whilst it logs in or turns on? If so, you might benefit from a quick look in Task Manager and see what’s going on.
Today we had a mass of emails sent to users that managed to bypass the spam filter – horray! In order to stop users from opening the (virus) attachment, we decided it would be prudent to remove them from their mailboxes. In order to perform this search and delete, you need to be a member