PowerShell

A collection of powershell what I have done

PowerShell: Windows Storage Spaces (WSS) health check + email alerts

#PowerShell #Storage

Someone asked me for a way to alert on Windows Storage Spaces (WSS) issues on their home NAS server. My answer was a very dissapointing "…

Mat Grumpy Tech

Powershell: Create random password function

#PowerShell

As part of the auto-provisioning system I am working on I need something to generate secure passwords. This function will return a random password of any…

Mat Grumpy Tech

PowerShell, Hyper-V : Set VM IP from the host

#PowerShell #Hyper-V

Its been a while with no updates and it's not that I haven't been working hard, it's that I have been doing a lot of stuff…

Mat Grumpy Tech

PowerShell, Hyper-V: Controlling Automatic Start in Batches

#PowerShell #Hyper-V

In my environment, I have a lot of very large hyper-v hosts and each can contain 100+ VM's. These VM's are partly managed by another system…

Mat Grumpy Tech

PowerShell, Veeam : Job status report

#PowerShell #Veeam

Veeam is a great application, with great Powershell support. You can do anything the application does and more from PowerShell. I am just getting my teeth…

Mat Grumpy Tech

PowerShell, Hyper-V: Drain standalone Hyper-V host

#PowerShell #Hyper-V

If you need to drain a non clustered Hyper-v server then you have the lovely shared nothing live migrations tool at your disposal. Of course, its…

Mat Grumpy Tech

Storage: Windows Storage spaces S2D

#Hyper-V #PowerShell #Storage

I have written a guide on testing storage with VM-fleet that goes well with this. Generally speaking when testing something new I will build it and…

Mat Grumpy Tech

Powershell : Add Additional IP's

#PowerShell

Today I had to add 40 secondary IP's to a network interface on an IIS server. Here is how you would do that in PowerShell New-NetIPAddress…

Mat Grumpy Tech

Storage: Testing with VM-Fleet

#PowerShell #Storage #Hyper-V

There are a lot of guides for this out there and I'm convinced 99% of them are just badly copied from someone else guide. They all…

Mat Grumpy Tech