/Various-Code

Various PowerShell code that I upload here - do with it what you want

Primary LanguagePowerShellMIT LicenseMIT

Various-Code

Check-IsValidIPAddress

Small function to check if a given IP address is a valid one

Check-RebootPending

Checks various system settings to see if the machine is waiting for a reboot

CleanUserProfileFolders

Useful for terminal servers with lots of users. Removes all files and folders from the listed entires for all user profiles. It will try to detect the correct path, or if you have multiple paths, has an override parameter.

Manage-KeePass

Manage KeePass database from within PowerShell

PasswordGenerator

GUI form to generate random passwords for you

Remove-VMwareSnapshots

Quick an dirty script to remove any snapshots from VMware that contain the string "(Remove On dd/mm/yyyy)" anywhere in the description. I run this daily in my environment so that anyone creating snapshots can have them automatically removed on the specific date.

SCOM-MaintenanceMode.ps1

A PowerShell version of my SCOM Maintentance Mode tool. This works with SCOM 2016 only.

Show-InputForm

Multiple use GUI for asking for a variety of input types that can also perform simple validation. See https://imgur.com/a/ZRXGT for images