Example.txt

$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
 
$Splating = @{
  BGInfoRows = $row1,$row2,$row3
  TextColor = "White"
  Position = "BottomRight"
  ImagePath = "C:\Temp\"
  BackgroundImage = "c:\windows\web\wallpaper\themeb\img24.jpg"
}
 
New-BGinfoImage @Splating
Invoke-Item C:\Temp\BGinfoImage.bmp