UsefulFunctions

A list of useful PowerShell functions.

PowerShell: Create random password function V3.

#PowerShell #UsefulFunctions

A while ago I wrote this, which in turn was an improvement on this. This is a slight improvement on the previous version in that it…

Mat Grumpy Tech

PowerShell: Test if running as admin

#PowerShell #UsefulFunctions

If you need to run something as the local admin then you can test for that. See below: function Test-Administrator { $User = [Security.Principal.WindowsIdentity]::GetCurrent(); return…

Mat Grumpy Tech

PowerShell: Fast dead host detection (Fast ping)

#PowerShell #Server #UsefulFunctions

Before you continue please consider clicking on one of the horrible ads. I know they are a pain but they help me pay for the hosting…

Mat Grumpy Tech

PowerShell : Function for logging events.

#PowerShell #UsefulFunctions

I have found that when writing scripts I don't do enough event logging, and when I do decide to log something its not usually…

Mat Grumpy Tech