Some useful scripts in Powershell. Azure Cloud Shell is included as well. Other cmd and VBS scripts are stored in the corresponding folders.
- Learn Powershell in a month of lunches, D. Jones, J. Hicks
- Learn Powershell scripting in a month of lunches, D. Jones, J. Hicks
- Planet Powershell as a collector of web content
- John Savill's Powershell Masterclass
Compare-FolderContent: very simple command to compare the content of two similarly-structured foldersGet-DirectoryTreeSize: from The Sysadmin Channel; it gets file count, subdirectory count and folder size of a specific pathGet-PSFreeDrive: it returns the free space of the system drivesGet-PublicIPAddress: it returns your public IPv4 addressInstall-PowershellCore: it downloads and installs Powershell CoreNew-AzMyResources: it creates a spot VM in Azure, providing the public IP address and opening a Windows Remote Desktop sessionRun-AzVMscript: it runs a specific Powershell script on an Azure VMTest-ParallelPing: it loops through an array of IPv4 addresses, continuously returning for each the result ofTest-Connection(it's like multi-address ping)Test-SQLConnection: usessqlcmdto continuously check the connection to SQL Server, then sends an email notification as soon as it gets down