Exchange is a very powerful piece of software. Unfortunately, misconfigurations, shared mailbox access, rogue admins and more can allow sensitive data to be viewed or deleted. I experienced this a few weeks ago where a member of a shared mailbox was deleting emails that needed dealing with! Let’s have a look at how to track […]
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 […]
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 […]
Using Shadow Copies on Windows Server (and Desktop)
Shadow Copies can be a lifesaver – when used correctly. They are not a replacement for backups, but can sometimes stop you reaching for that backup tape stored in the depths of the IT office (yes, in that cupboard!). I recently had a user who managed to delete an entire folder from a shared area […]
“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:
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 […]
Bulk rename files using PowerShell
How many times have you wanted to rename files en-masse? Windows Explorer has a couple of great utilities to help with this task. For instance: Select files in Explorer using CTRL or SHIFT (files must be in the same folder) Press F2 to rename, or right-click -> rename Type the new name for the files. […]