PowerShell

A collection of powershell what I have done

PowerShell : Identify unused GPO with ZZZ_

#PowerShell

A nice and quick one for you. This will find any group policy objects that you have in your domain that are not in use and…

Mat Grumpy Tech

PowerShell : Adding records to the hosts file

#PowerShell

This is always a pain. Its much easier to just open a PowerShell windows as an administrator and issue the following Add-Content C:\Windows\System32\drivers\…

Mat Grumpy Tech

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