PowerShell

To Probe IndexProbe Reference Index

PowerShell > Disk Space

Disk Space

This probe uses PowerShell to retrieve the disk space available on a drive on the target host. It uses WMI's ability to retrieve information from a remote host instead of PowerShell's remoting capability. Specifically, it queries the Size and FreeSpace properties of the Win32_LogicalDisk class, computes percentage free space, and compares it against the Warning, Alarm and Critical parameters you set.

Parameters

Drive - set to "All" to list all Local hard drives on the host. Enter a list of comma-separated drive letters with colons. Drives can be listed regardless of whether they are local or not. Zero-sized drives, such as empty cd-roms, are not listed. The first drive failing the warning or critical criteria test is cited in the reason.

Warning, Alarm, Critical, Down (%) - enter a threshold for the percentage of disk space that changes the device's state to the specified alarm level.

User - may be a local user on the target host, or may take the form of "domain\user" for a domain login. Leave it blank if authentication is not required, such as when the target is the localhost.

Password - enter a password for the specified user.

Timeout (sec) - enter a number of seconds to wait for a response from the target host.

PowerShell Version - Choose the version of PowerShell running on the InterMapper Server's host. (Note: This is not the target device's host.)

InterMapper invokes the WindowsWmiFreeDiskSpace.ps1 companion script, placed in the Tools folder of the InterMapper Settings folder when probe is loaded. It uses the exit value to set the condition of the device, and uses the performance data returned by the script to create a display of chartable data.

Filename: com.helpsystems.powershell.wmi.diskspace.txt
Version: 1.0

Back to Top

PowerShell > Remoting > Disk Space (Signed)

Disk Space (Signed)

This probe requires a companion script that must be signed and placed in the \InterMapper Setting\Tools folder before it can be run.

This probe uses PowerShell to determine the disk space available on a drive on the target host. Specifically, it queries the Size and FreeSpace properties of the Win32_LogicalDisk class, computes percentage free space, and compares it against the Warning and Critical parameters you set. The target host must be running PowerShell with Remoting enabled.

Parameters

Drive - set to "All" to list all Local hard drives on the host. Use a list of comma-separated drive letters with colons. Drives can be listed regardless of whether they are local or not. Zero-sized drives (i.e. an empty cd-rom) are not listed. The first drive failing the warning or critical criteria test is cited in the reason.

Warning, Alarm, Critical, Down (%) - enter a threshold for the percentage of disk space that changes the device's state to the specified alarm level.

User - may be a local user on the target host, or may take the form of "domain\user" for a domain login. Leave it blank if authentication is not required, such as when the target is the localhost.

Password - enter a password for the specified user.

Timeout (sec) - enter a number of seconds to wait for a response from the target host.

PowerShell Version - Choose the version of PowerShell running on the InterMapper Server's host. (Note: This is not the target device's host.)

InterMapper attempts to invoke the WindowsRemotingFreeDiskSpace.signed.ps1 companion script after setting ExecutionPolicy to "AllSigned". If InterMapper is installed in the default location, this script is available in the C:\Program Files\InterMapper\docs\samples\powershell folder. It must be copied to the Tools folder, and signed before it can be run. It uses the exit value to set the condition of the device and the performance data returned by the script to create a display of the results.

Filename: com.helpsystems.powershell.remote.diskspace.sign.txt
Version: 1.0

Back to Top

PowerShell > Remoting > Disk Space

Disk Space

This probe uses PowerShell to determine the disk space available on a drive on the target host. Specifically, it queries the Size and FreeSpace properties of the Win32_LogicalDisk class, computes percentage free space, and compares it against the Warning and Critical parameters you set. The target host must be running PowerShell with Remoting enabled.

Parameters

Drive - set to "All" to list all Local hard drives on the host. Use a list of comma-separated drive letters with colons. Drives can be listed regardless of whether they are local or not. Zero-sized drives (i.e. an empty cd-rom) are not listed. The first drive failing the warning or critical criteria test is cited in the reason.

Warning, Alarm, Critical, Down (%) - enter a threshold for the percentage of disk space that changes the device's state to the specified alarm level.

User - may be a local user on the target host, or may take the form of "domain\user" for a domain login. Leave it blank if authentication is not required, such as when the target is the localhost.

Password - enter a password for the specified user.

Timeout (sec) - enter a number of seconds to wait for a response from the target host.

PowerShell Version - Choose the version of PowerShell running on the InterMapper Server's host. (Note: This is not the target device's host.)

InterMapper invokes the WindowsRemotingFreeDiskSpace.ps1 companion script, placed in the Tools folder of the InterMapper Settings folder when probe is loaded. It uses the exit value to set the condition of the device, and uses the performance data returned by the script to create a display of chartable data.

Filename: com.helpsystems.powershell.remote.diskspace.txt
Version: 1.0

Back to Top

PowerShell > Remoting > Installed Software

Installed Software

This probe uses PowerShell to provide a listing of installed software, installed updates, or both. This probe requires that PowerShell 2.0 or later be installed, and PowerShell remoting must be enabled and configured to use this probe. This probe uses the registry, not WMI objects

Parameters

Software - Choose whether to list installed software, software updates, or both.

User - may be a local user on the target host, or may take the form of "domain\user" for a domain login. Leave it blank if authentication is not required, such as when the target is the localhost.

Password - enter a password for the specified user.

Authentication - choose a type of authentication you want PowerShell to use to connect to the target host.

Timeout (sec) - enter a number of seconds to wait for a response from the target host.

PowerShell Version - Choose the version of PowerShell running on the InterMapper Server's host. (Note: This is not the target device's host.)

InterMapper invokes the included ApplicationList.ps1 companion script in InterMapper Settings/Tools.

Filename: com.helpsystems.powershell.remote.installedSoftware.txt
Version: 1.0

Back to Top

PowerShell > Remoting > Process Count

Process Count

This probe uses PowerShell's remoting capabilities and Get-Process object to retrieve the number of instances of a given process currently executing on the target host.

Parameters

ProcessName - enter the name of the process you want to monitor.

User - may be a local user on the target host, or may take the form of "domain\user" for a domain login. Leave it blank if authentication is not required, such as when the target is the localhost.

Password - enter a password for the specified user.

Timeout (sec) - enter a number of seconds to wait for a response from the target host.

PowerShell Version - Choose the version of PowerShell running on the InterMapper Server's host. (Note: This is not the target device's host.)

InterMapper invokes the ProcessCount.ps1 companion script, placed in the Tools folder of the InterMapper Settings folder when probe is loaded.

Filename: com.helpsystems.powershell.remote.processcount.txt
Version: 1.0

Back to Top