en-US/PowershellBGInfo.dll-Help.xml
<?xml version="1.0" encoding="utf-8"?>
<helpItems xmlns="http://msh" schema="maml"> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <!--TAG: HASCOMMONPARAMETERS--> <!-- Command--> <command:details> <command:name>Get-ComputerName</command:name> <maml:description> <maml:para>Get-ComputerName [<CommonParameters>]</maml:para> </maml:description> <maml:copyright> <maml:para></maml:para> </maml:copyright> <command:verb>Get</command:verb> <command:noun>ComputerName</command:noun> <dev:version /> </command:details> <maml:description> <maml:para>Retrieves the computer's hostname.</maml:para> </maml:description> <command:syntax> <!-- Parameter Sets--> <command:syntaxItem parametersetname="__AllParameterSets"> <!--NAME: __AllParameterSets--> <maml:name>Get-ComputerName</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <!-- All Parameters--> </command:parameters> <command:inputTypes> <!-- Inputs--> <command:inputType> <dev:type> <maml:name>None </maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- Outputs--> <command:returnValue> <dev:type> <maml:name>System.Object</maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <!-- Examples--> <command:example> <maml:title>EXAMPLE 1</maml:title> <dev:code>C:\PS> Get-ComputerName</dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> </command:examples> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <!--TAG: HASCOMMONPARAMETERS--> <!-- Command--> <command:details> <command:name>Get-HostName</command:name> <maml:description> <maml:para>Get-HostName [<CommonParameters>]</maml:para> </maml:description> <maml:copyright> <maml:para></maml:para> </maml:copyright> <command:verb>Get</command:verb> <command:noun>HostName</command:noun> <dev:version /> </command:details> <maml:description> <maml:para>Retrieves the computer's hostname.</maml:para> </maml:description> <command:syntax> <!-- Parameter Sets--> <command:syntaxItem parametersetname="__AllParameterSets"> <!--NAME: __AllParameterSets--> <maml:name>Get-HostName</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <!-- All Parameters--> </command:parameters> <command:inputTypes> <!-- Inputs--> <command:inputType> <dev:type> <maml:name>None </maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- Outputs--> <command:returnValue> <dev:type> <maml:name>System.Object</maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <!-- Examples--> <command:example> <maml:title>EXAMPLE 1</maml:title> <dev:code>C:\PS> Get-HostName</dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> </command:examples> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <!--TAG: HASCOMMONPARAMETERS--> <!-- Command--> <command:details> <command:name>New-BGinfoImage</command:name> <maml:description> <maml:para></maml:para> </maml:description> <maml:copyright> <maml:para></maml:para> </maml:copyright> <command:verb>New</command:verb> <command:noun>BGinfoImage</command:noun> <dev:version /> </command:details> <maml:description> <maml:para></maml:para> </maml:description> <command:syntax> <!-- Parameter Sets--> <command:syntaxItem parametersetname="Color"> <!--NAME: Color--> <maml:name>New-BGinfoImage</maml:name> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BGInfoRows</maml:name> <maml:description> <maml:para>This Rows will be in the imgae</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">BGInfoRow[]</command:parameterValue> <dev:type> <maml:name>BGInfoRow[]</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>TextColor</maml:name> <maml:description> <maml:para>This is the string color - Default White</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BackgroundColor</maml:name> <maml:description> <maml:para>This is the string color - Default Black</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>ImagePath</maml:name> <maml:description> <maml:para>The path where the image will be saved.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:syntaxItem> <command:syntaxItem parametersetname="Background"> <!--NAME: Background--> <maml:name>New-BGinfoImage</maml:name> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BGInfoRows</maml:name> <maml:description> <maml:para>This Rows will be in the imgae</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">BGInfoRow[]</command:parameterValue> <dev:type> <maml:name>BGInfoRow[]</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>TextColor</maml:name> <maml:description> <maml:para>This is the string color - Default White</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>ImagePath</maml:name> <maml:description> <maml:para>The path where the image will be saved.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BackgroundImage</maml:name> <maml:description> <maml:para>The base image background.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>Position</maml:name> <maml:description> <maml:para>The position of the text on the background.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">TextPosition</command:parameterValue> <command:parameterValueGroup> <command:parameterValue required="false" variableLength="false">TopLeft</command:parameterValue> <command:parameterValue required="false" variableLength="false">TopCenter</command:parameterValue> <command:parameterValue required="false" variableLength="false">TopRight</command:parameterValue> <command:parameterValue required="false" variableLength="false">CenterLeft</command:parameterValue> <command:parameterValue required="false" variableLength="false">Center</command:parameterValue> <command:parameterValue required="false" variableLength="false">CenterRight</command:parameterValue> <command:parameterValue required="false" variableLength="false">BottomLeft</command:parameterValue> <command:parameterValue required="false" variableLength="false">BottomCenter</command:parameterValue> <command:parameterValue required="false" variableLength="false">BottomRight</command:parameterValue> </command:parameterValueGroup> <dev:type> <maml:name>TextPosition</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- All Parameters--> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BGInfoRows</maml:name> <maml:description> <maml:para>This Rows will be in the imgae</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">BGInfoRow[]</command:parameterValue> <dev:type> <maml:name>BGInfoRow[]</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>TextColor</maml:name> <maml:description> <maml:para>This is the string color - Default White</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BackgroundColor</maml:name> <maml:description> <maml:para>This is the string color - Default Black</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>ImagePath</maml:name> <maml:description> <maml:para>The path where the image will be saved.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BackgroundImage</maml:name> <maml:description> <maml:para>The base image background.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>Position</maml:name> <maml:description> <maml:para>The position of the text on the background.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">TextPosition</command:parameterValue> <command:parameterValueGroup> <command:parameterValue required="false" variableLength="false">TopLeft</command:parameterValue> <command:parameterValue required="false" variableLength="false">TopCenter</command:parameterValue> <command:parameterValue required="false" variableLength="false">TopRight</command:parameterValue> <command:parameterValue required="false" variableLength="false">CenterLeft</command:parameterValue> <command:parameterValue required="false" variableLength="false">Center</command:parameterValue> <command:parameterValue required="false" variableLength="false">CenterRight</command:parameterValue> <command:parameterValue required="false" variableLength="false">BottomLeft</command:parameterValue> <command:parameterValue required="false" variableLength="false">BottomCenter</command:parameterValue> <command:parameterValue required="false" variableLength="false">BottomRight</command:parameterValue> </command:parameterValueGroup> <dev:type> <maml:name>TextPosition</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <!-- Inputs--> <command:inputType> <dev:type> <maml:name>PowershellBGInfo.BGInfoRow[] System.String PowershellBGInfo.TextPosition </maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- Outputs--> <command:returnValue> <dev:type> <maml:name>PowershellBGInfo.BGinfoImageOutput </maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <!-- Examples--> <command:example> <maml:title>EXAMPLE 1</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>$row1 = New-BGInfoRow -RowText (Get-HostName) -FontSize 30 -FontStyle Bold $RoleService = Get-WindowsFeature | where {$_.Installed -EQ $true -and $_.FeatureType -eq "Role Service" -and $_.depth -EQ 2 } | select DisplayName | sort DisplayName $row2 = New-BGInfoRow -RowText $RoleService.DisplayName -FontFamily "Comic Sans MS" -FontSize 22 $ipaddress=([System.Net.DNS]::GetHostAddresses($env:COMPUTERNAME)|Where-Object {$_.AddressFamily -eq "InterNetwork"} | select-object IPAddressToString)[0].IPAddressToString $row3 = New-BGInfoRow -RowText $ipaddress -FontFamily "Comic Sans MS" -FontSize 22 $BGinfoImage = New-BGinfoImage -BGInfoRows $row1,$row2,$row3 -TextColor "White" -BackgroundColor "Black" </dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> </command:examples> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <!--TAG: HASCOMMONPARAMETERS--> <!-- Command--> <command:details> <command:name>New-BGInfoRow</command:name> <maml:description> <maml:para></maml:para> </maml:description> <maml:copyright> <maml:para></maml:para> </maml:copyright> <command:verb>New</command:verb> <command:noun>BGInfoRow</command:noun> <dev:version /> </command:details> <maml:description> <maml:para></maml:para> </maml:description> <command:syntax> <!-- Parameter Sets--> <command:syntaxItem parametersetname="__AllParameterSets"> <!--NAME: __AllParameterSets--> <maml:name>New-BGInfoRow</maml:name> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>RowText</maml:name> <maml:description> <maml:para>This text will be the BGInfo row</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">Object</command:parameterValue> <dev:type> <maml:name>Object</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>FontFamily</maml:name> <maml:description> <maml:para>The text FontFamily, Default = Ariel</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>FontSize</maml:name> <maml:description> <maml:para>The text size, Default = 12</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">Int32</command:parameterValue> <dev:type> <maml:name>Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>FontStyle</maml:name> <maml:description> <maml:para>The text FontStyle, Default = FontStyle.Regular</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <command:parameterValueGroup> <command:parameterValue required="false" variableLength="false">Bold</command:parameterValue> <command:parameterValue required="false" variableLength="false">Regular</command:parameterValue> <command:parameterValue required="false" variableLength="false">Italic</command:parameterValue> <command:parameterValue required="false" variableLength="false">Underline</command:parameterValue> <command:parameterValue required="false" variableLength="false">Strikeout</command:parameterValue> </command:parameterValueGroup> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- All Parameters--> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>RowText</maml:name> <maml:description> <maml:para>This text will be the BGInfo row</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">Object</command:parameterValue> <dev:type> <maml:name>Object</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>FontFamily</maml:name> <maml:description> <maml:para>The text FontFamily, Default = Ariel</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>FontSize</maml:name> <maml:description> <maml:para>The text size, Default = 12</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">Int32</command:parameterValue> <dev:type> <maml:name>Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>FontStyle</maml:name> <maml:description> <maml:para>The text FontStyle, Default = FontStyle.Regular</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <command:parameterValueGroup> <command:parameterValue required="false" variableLength="false">Bold</command:parameterValue> <command:parameterValue required="false" variableLength="false">Regular</command:parameterValue> <command:parameterValue required="false" variableLength="false">Italic</command:parameterValue> <command:parameterValue required="false" variableLength="false">Underline</command:parameterValue> <command:parameterValue required="false" variableLength="false">Strikeout</command:parameterValue> </command:parameterValueGroup> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <!-- Inputs--> <command:inputType> <dev:type> <maml:name>System.Object System.String System.Int32 </maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- Outputs--> <command:returnValue> <dev:type> <maml:name>System.Object</maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <!-- Examples--> <command:example> <maml:title>EXAMPLE 1</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>C:\PS> $row1 = New-BGInfoRow -RowText (Get-HostName) -FontSize 30 -FontStyle Bold </dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 2</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>C:\PS> $row2 = New-BGInfoRow -RowText $RoleService.DisplayName -FontFamily "Comic Sans MS" -FontSize 22 $ipaddress=([System.Net.DNS]::GetHostAddresses($env:COMPUTERNAME)|Where-Object {$_.AddressFamily -eq "InterNetwork"} | select-object IPAddressToString)[0].IPAddressToString </dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 3</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>C:\PS> $row3 = New-BGInfoRow -RowText $ipaddress -FontFamily "Comic Sans MS" -FontSize 22 $BGinfoImage = New-BGinfoImage -BGInfoRows $row1,$row2,$row3 -TextColor "White" -BackgroundColor "Black" </dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> </command:examples> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <!--TAG: HASCOMMONPARAMETERS--> <!-- Command--> <command:details> <command:name>Set-BGInfoImage</command:name> <maml:description> <maml:para></maml:para> </maml:description> <maml:copyright> <maml:para></maml:para> </maml:copyright> <command:verb>Set</command:verb> <command:noun>BGInfoImage</command:noun> <dev:version /> </command:details> <maml:description> <maml:para></maml:para> </maml:description> <command:syntax> <!-- Parameter Sets--> <command:syntaxItem parametersetname="__AllParameterSets"> <!--NAME: __AllParameterSets--> <maml:name>Set-BGInfoImage</maml:name> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BGinfoImageOutput</maml:name> <maml:description> <maml:para>BGinfoImage Object</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">BGinfoImageOutput</command:parameterValue> <dev:type> <maml:name>BGinfoImageOutput</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- All Parameters--> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="True (ByPropertyName, ByValue)" position="named"> <maml:name>BGinfoImageOutput</maml:name> <maml:description> <maml:para>BGinfoImage Object</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">BGinfoImageOutput</command:parameterValue> <dev:type> <maml:name>BGinfoImageOutput</maml:name> <maml:uri /> </dev:type> <dev:defaultValue></dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <!-- Inputs--> <command:inputType> <dev:type> <maml:name>PowershellBGInfo.BGinfoImageOutput </maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- Outputs--> <command:returnValue> <dev:type> <maml:name>System.Object</maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <!-- Examples--> <command:example> <maml:title>EXAMPLE 1</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>$row1 = New-BGInfoRow -RowText (Get-HostName) -FontSize 30 -FontStyle Bold $RoleService = Get-WindowsFeature | where {$_.Installed -EQ $true -and $_.FeatureType -eq "Role Service" -and $_.depth -EQ 2 } | select DisplayName | sort DisplayName $row2 = New-BGInfoRow -RowText $RoleService.DisplayName -FontFamily "Comic Sans MS" -FontSize 22 $ipaddress=([System.Net.DNS]::GetHostAddresses($env:COMPUTERNAME)|Where-Object {$_.AddressFamily -eq "InterNetwork"} | select-object IPAddressToString)[0].IPAddressToString $row3 = New-BGInfoRow -RowText $ipaddress -FontFamily "Comic Sans MS" -FontSize 22 $BGinfoImage = New-BGinfoImage -BGInfoRows $row1,$row2,$row3 -TextColor "White" -BackgroundColor "Black" Set-BGInfoImage -BGinfoImageOutput $BGinfoImage </dev:code> <dev:remarks> <maml:para /> </dev:remarks> </command:example> </command:examples> </command:command> <!-- Generated by: SAPIEN PowerShell HelpWriter 2025 v3.0.71--> </helpItems> |