Set-HostProperty
Last updated
Sets the current host property.
Set-HostProperty [-ForegroundColor <Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White>] [-BackgroundColor <Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White>] [-HostWidth <Int32>] [-Persist]
Sets the current host property and perssits them for the future if used with -Persist parameter.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Color of the console text.
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Color of the console background.
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Width of the text buffer (texts longer than the number provided will wrap to the next line.
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Persist the console setting provided
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Help Author: Adam Najmanowicz, Michael West
Set width of the console buffer to 80 and persist it for the future instances
Set color of the console text to cyan. Next instance of the console will revert to default (white).
Last updated
PS master:\> Set-HostProperty -HostWidth 80 -PersistPS master:\> Set-HostProperty -ForegroundColor Cyan