external help file: pshtml-help.xml Module Name: PSHTML online version: schema: 2.0.0
ConvertTo-HTMLTable
SYNOPSIS
Converts a powershell object to a HTML table.
SYNTAX
ConvertTo-HTMLTable [-Object] <Object> [<CommonParameters>]
DESCRIPTION
This cmdlet is intended to be used when powershell objects should be rendered in an HTML table format.
EXAMPLES
EXAMPLE 1
$service = Get-Service -Name Sens,wsearch,wscsvc | Select-Object -Property DisplayName,Status,StartType
Generates the following code:
ConvertTo-HTMLtable -Object $service
EXAMPLE 2
$proc = Get-Process | Select-Object -First 2
Generates the following code:
ConvertTo-HTMLtable -Object $proc
PARAMETERS
-Object
{{Fill Object Description}}
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Current version 0.6 History: 2018.05.09;stephanevg;Creation.