Results 1 to 9 of 9
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,523
    Thanks
    87
    Thanked 13 Times in 12 Posts

    "ALL" I want to do...

    is change the text and background colors of Powershell errors. No, it isn't. Or should not be critical, but it bugs me. Since I know Nada about PowerShell I don't even know what I am looking for as yet.

    Isn't there so (relatively) easy way to control screen colors -- specifically of the error messages in PowerShell?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,150
    Thanks
    5
    Thanked 1,173 Times in 1,026 Posts
    With PowerShell open click on the PowerShell icon in the PoweShell window and select Defaults or Properties. Look at the fonts and colors tab.
    Joe

  3. #3
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,150
    Thanks
    5
    Thanked 1,173 Times in 1,026 Posts
    Also, check out some of the repsonses on the first page at Customizing PowerShell Prompt.
    Joe

  4. #4
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,523
    Thanks
    87
    Thanked 13 Times in 12 Posts
    I get/got the prompt customization, Joe, but I didn't /don't see where customizing the error messages is spelled out.

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  5. #5
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,523
    Thanks
    87
    Thanked 13 Times in 12 Posts
    Joe, here's hat nI get when I open a powerscript window -- which is black on red:

    . : File C:\Users\CWBillow\Documents\WindowsPowerShell\prof ile.ps1 cannot be loaded because running scripts is
    disabled on this system. For more information, see about_Execution_Policies at
    http://go.microsoft.com/fwlink/?LinkID=135170.
    At line:1 char:3
    + . 'C:\Users\CWBillow\Documents\WindowsPowerShell\pro file.ps1'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
    + CategoryInfo : SecurityError: ( [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    . : File C:\Users\CWBillow\Documents\WindowsPowerShell\Micr osoft.PowerShell_profile.ps1 cannot be loaded
    because running scripts is disabled on this system. For more information, see about_Execution_Policies at
    http://go.microsoft.com/fwlink/?LinkID=135170.
    At line:1 char:3
    + . 'C:\Users\CWBillow\Documents\WindowsPowerShell\Mic rosoft.PowerShell ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
    + CategoryInfo : SecurityError: ( [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    PS C:\>

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  6. #6
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,880
    Thanks
    60
    Thanked 1,096 Times in 1,019 Posts
    That error is normal, see this post from RG.
    https://windowssecrets.com/forums/sho...l=1#post932484

    cheers, Paul

  7. #7
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,523
    Thanks
    87
    Thanked 13 Times in 12 Posts
    Thanks Paul.

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  8. #8
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,864
    Thanks
    416
    Thanked 1,576 Times in 1,427 Posts
    Chuck,

    See this article I googled "powershell change font color".

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  9. #9
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,523
    Thanks
    87
    Thanked 13 Times in 12 Posts
    Cool, thanks, RG.

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •