Mat Grumpy Tech

This site is run by ads, you probably have ad-blocker. Me too, but you wouldn't believe how expensive hosting is. Why not buy me a coffee?

United Kingdon

85 posts

Hyper-v, Powershell : Get the hostname of the server hosting your VM

#PowerShell #Hyper-V

I always forget this so: (get-item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")…

Mat Grumpy Tech

PowerShell + Windows Firewall: RDP Brute Force Protection - UPDATE

#PowerShell

If you have a server on the internet you will probably already be aware that there are scumbags out there running apps that just scan every…

Mat Grumpy Tech

PowerShell & Active Directory- Accounts that are active but not logged in for ages

#PowerShell

I have been really busy recently and my drafts are full of parts of scripts that I havent had time to make suitable for general comsumtion.…

Mat Grumpy Tech

PowerShell: Create random password function V2.

#PowerShell #UsefulFunctions

A while ago I wrote this. It generated you a random password based on a character set defined within the code. It does what its supposed…

Mat Grumpy Tech