Category: PowerShell Snippets

1 2 10 / 15 POSTS
IP Address Geo-Location

IP Address Geo-Location

PowerShell script that uses a free IP geolocation API (ip-api.com) to get the location of an IP address. Please note that the accuracy of the location ...
Open Port Scanning

Open Port Scanning

PowerShell script that uses the Test-NetConnection cmdlet to scan for open TCP ports on a given IP address. Please note that this script only scans TC ...
Windows Defender Real Time Monitoring Status

Windows Defender Real Time Monitoring Status

PowerShell script that you can use to check the status of Windows Defender’s real-time monitoring on a list of computers from a text file # Import th ...
Managing VMware Snapshots with Powershell

Managing VMware Snapshots with Powershell

PowerShell script that you can use to list all snapshots on a vServer. This script assumes that you have the necessary permissions and that the Get-Nc ...
Disable/Enable all Network Adapters

Disable/Enable all Network Adapters

PowerShell script that can disable and then enable all network adapters on a computer. Please note that running this script will interrupt all network ...
Disable SSL 2.0/3.0 and TLS 1.0/1.1

Disable SSL 2.0/3.0 and TLS 1.0/1.1

Learn to disable SSL and weak TLS versions like 1.0 and 1.1 ...
Use PowerShell to Check .NET version and update

Use PowerShell to Check .NET version and update

This function will check the currently installed .NET version, if it is not at a minimum 4.6.1 then depending on if the Windows Server is 2008/2012 or ...
IIS with ASP.NET support check

IIS with ASP.NET support check

I have in the past had an occasion to check if IIS is installed with support for ASP.NET applications. This function will do all you need: function ...
Send Mail with PowerShell

Send Mail with PowerShell

We can create a basic function to send email with PowerShell by using the following, we will call it Send-SimpleMail. function Send-SimpleMail ([st ...
Reading and Writing to SQL Databases with PowerShell

Reading and Writing to SQL Databases with PowerShell

First let's start off by saying that this is not meant to be the end to end all solutions especially for large databases with thousands of records. Th ...
1 2 10 / 15 POSTS