2015-02-20 00:35:01 -05:00
|
|
|
# Converts Microsoft .NET Framework objects into HTML that can be displayed in a Web browser.
|
|
|
|
|
ConvertTo-Html -inputobject (Get-Date)
|
|
|
|
|
|
|
|
|
|
# Create a PowerShell object using a HashTable
|
2015-11-18 06:14:39 +00:00
|
|
|
$object = [PSCustomObject]@{
|
|
|
|
|
'A'=(Get-Random -Minimum 0 -Maximum 10);
|
|
|
|
|
'B'=(Get-Random -Minimum 0 -Maximum 10);
|
|
|
|
|
'C'=(Get-Random -Minimum 0 -Maximum 10)}
|
2015-02-20 00:35:01 -05:00
|
|
|
|
|
|
|
|
$object | ConvertTo-Html
|