1

Resolved

Errors when setting $Host.PrivateData.Settings values

description

I've been trying to run the quake mode script as in the PoshConsole profile but am getting the following errors which means the console doesn't work as expected.

Property 'AutoHide' cannot be found on this object; make sure it exists and is settable.
At C:\Users\mayesr\Documents\WindowsPowerShell\PoshConsole_profile.ps1:14 char:29
  • $Host.PrivateData.Settings. <<<< AutoHide = $true;
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException
Property 'BorderThickness' cannot be found on this object; make sure it exists and is settable.
At C:\Users\mayesr\Documents\WindowsPowerShell\PoshConsole_profile.ps1:18 char:29
  • $Host.PrivateData.Settings. <<<< BorderThickness = "0,0,0,5";
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException
Property 'BorderColorBottomRight' cannot be found on this object; make sure it exists and is settable.
At C:\Users\mayesr\Documents\WindowsPowerShell\PoshConsole_profile.ps1:19 char:29
  • $Host.PrivateData.Settings. <<<< BorderColorBottomRight = "Red";
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException
Property 'BorderColorTopLeft' cannot be found on this object; make sure it exists and is settable.
At C:\Users\mayesr\Documents\WindowsPowerShell\PoshConsole_profile.ps1:20 char:29
  • $Host.PrivateData.Settings. <<<< BorderColorTopLeft = "#CCFF3300";
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException
Property 'ConsoleDefaultBackground' cannot be found on this object; make sure it exists and is settable.
At C:\Users\mayesr\Documents\WindowsPowerShell\PoshConsole_profile.ps1:25 char:29
  • $Host.PrivateData.Settings. <<<< ConsoleDefaultBackground = "Black";
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException
Property 'ConsoleDefaultForeground' cannot be found on this object; make sure it exists and is settable.
At C:\Users\mayesr\Documents\WindowsPowerShell\PoshConsole_profile.ps1:26 char:29
  • $Host.PrivateData.Settings. <<<< ConsoleDefaultForeground = "Green";
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException

comments

Jaykul wrote Jan 24, 2012 at 9:59 PM

Those settings are old and no longer needed.

With the current build you should be able to get quake mode merely by dragging the window near the top of the screen and letting it dock there.