< Back

Get-d00mServiceReport

Mon Jan 13, 2020 8:38 am

NAME Get-d00mServiceReport



SYNOPSIS

Generates services HTML report





SYNTAX

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

[<CommonParameters>]





DESCRIPTION

Executes Get-Service on computers and gets the Name, DisplayName, ServiceName, Status,

and StartType and generates an HTML report in the current file system location by default.





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-d00mServiceReport -ComputerName LocalHost



This example gets the services on the local machine using the default credentials and generates

an HTML report in the current file system location.









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



PS C:\\>Get-d00mServiceReport -ComputerName Computer1, Computer2



This example gets the services on the remote computers, Computer1 and Computer2, and generates

an HTML report for each in the current file system location.









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



PS C:\\>'Computer1' | Get-d00mServiceReport -Credential (Get-Credential)



This example gets the services on the piped in computername, Computer1, using the specified

credentials and generates an HTML report in the current file system location.









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-d00mServiceReport -ComputerName LocalHost -FilePath c:\\path



This example gets the services for the local computer using the default credentials and generates

an HTML report saved to the specified file system path.











RELATED LINKS