I wanted to change the colours for powersshell error messages. Easily done by using this code
# Set Error and warning colours
$hostprivate = (Get-Host).PrivateData
$hostprivate.ErrorBackgroundColor = "red"
First i put the code in Profile.ps1 in C:\Documents and Settings\myname\Mina dokument\WindowsPowerShell.
This caused the powerhell scripting environment (ISE) to spit out some errors while starting:
Property ‘ErrorBackgroundColor’ cannot be [...]