PowerShell: Create random password function V3.
#PowerShell #UsefulFunctionsA 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…
PowerShell: Test if running as admin
#PowerShell #UsefulFunctionsIf 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…
PowerShell: Fast dead host detection (Fast ping)
#PowerShell #Server #UsefulFunctionsBefore 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…
PowerShell : Function for logging events.
#PowerShell #UsefulFunctionsI have found that when writing scripts I don't do enough event logging, and when I do decide to log something its not usually…