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 […]
Find Hyper-V Virtual Machine by MAC Address – 60 Second Solutions
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 […]
Installing an Android Emulator on Windows with Google Play
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 […]
Change Hyper-V VM Memory “as fast as possible” – 60 Second Solutions
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 […]
“Wait-Until” Time with PowerShell – 60 Second Solutions
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 […]
Free Memory on Nodes within a Cluster – 60 Second Solution
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:
Holiday Season 2015 – UK Laptop Top 10 Christmas Wishlist
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 […]
Why is System Restore turned off in Windows 10? (And how to switch it back on again)
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.
Slow Computer Start up or Login? Quick fix with Task Manager
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.
Mass Deleting of Emails in Exchange 2010
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 […]
- 1
- 2