Would you like to learn how to query SNMP using Powershell? In this tutorial, we are going to show you examples of how to perform the SNMP communication using the command-line on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Get SNMP data

Start a Powershell command-line.

Start Powershell

Query SNMP data using Powershell.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, we got the hostname using SNMP and Powershell.

Change the IP address and SNMP community to reflect your needs.

Get the device uptime using SNMP and Powershell.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Convert a name to the OID.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Query a tree of SNMP data using Powershell.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, we listed all network interfaces using SNMP and Powershell.

The result is presented as a 2-dimensional matrix.

Get a tree of SNMP data using Powershell and format the output as a table.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Query a tree of SNMP data using Powershell and format the output as a grid.

Copy to Clipboard

Here is the command output:

Powershell - SNMP

Congratulations! You are able to query SNMP data using Powershell.