< Back

Get-d00mMonitorReport

Mon Jan 13, 2020 8:37 am

NAME Get-d00mMonitorReport



SYNOPSIS

Generate monitor HTML report





SYNTAX

Get-d00mMonitorReport [-ComputerName] <String[]> [[-FilePath] <String>] [[-Credential] <PSCredential>]

[<CommonParameters>]





DESCRIPTION

Queries WMIMonitorID to generate a HTML report





PARAMETERS

-ComputerName <String[]>

The computers to which to execute this report



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-FilePath <String>

The directory to save the HTML report. The default is the current directory.



Required? false

Position? 2

Default value (Get-Location)

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The credential to use when creating a CIM session to the computer. The default is the current users

credentials.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-d00mMonitorReport -ComputerName Computer1



This example will query WMIMonitorID to generate a HTML report

on the specified computer, Computer1, saved to the current directory









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-d00mMonitorReport -ComputerName Computer1, Computer2 -FilePath \\\\server\\share



This example will query WMIMonitorID to generate a HTML report

for the specified computers, Computer1 and Computer2, saved to the specified

directory









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>$credential = Get-Credential



Get-Content C:\\list.txt | Get-d00mMonitorReport -FilePath \\\\server\\share -Credential $credential



This example will query WMIMonitorID to generate a HTML report

for the piped in computer names from the list at c:\\list.txt, saved to the

current directory by default using the specified credentials











RELATED LINKS