Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8960787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:44:15+00:00 2026-06-15T15:44:15+00:00

I’m attached to the nice blue colour of the PowerShell window when you launch

  • 0

I’m attached to the nice blue colour of the PowerShell window when you launch it from one of the pre-installed shortcuts. However, if you manually launch powershell.exe, you don’t get these colours, you get black/white 🙁

This is because the default settings are set on the shortcut (.lnk) file:

PowerShell shortcut colour settings

I’ve got a “PowerShell Prompt Here” entry in Explorer context menu, and I’d like it to launch PowerShell using the same nice colours as the usual shortcut; black sucks, and it’s confusing to have different coloured windows (especially when I have some old-school command windows open frequently that are also black!).

I’ve found two problems with trying to set this so far:

  1. Setting the colour from within PowerShell seems to only allow certain values (ConsoleColor enum), none of which match the one on the default shortcut.
  2. Setting the colour within the PS Profile causes only text written afterwards to honour the new background colour. Adding “cls” causes a nasty flash of the original colour as it starts.

Is there any way to launch PowerShell from a command line (ie. that I can embed in the registry as an Explorer context menu item) that will use the same settings as the shortcut?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:44:16+00:00Added an answer on June 15, 2026 at 3:44 pm

    Here’s a really easy way:

    1. Add .LNK to your PATHEXT variable.

    Start -> run “sysdm.cpl” -> advanced -> Environment Variables

    Scroll Down through system variables, double click PATHEXT

    Add .LNK; as depicted below:

    Path Extension

    2 Copy the default “Windows Powershell.lnk”

    Copy-Item "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows PowerShell\Windows PowerShell.lnk" "C:\Windows\System32\powershell.lnk"
    

    3. Typing “powershell” from a run prompt will now bring up the default console color/configuration.

    You can further customize the .lnk in C:\Windows\System32 to your liking.

    Please note that this will only work because you have added the .lnk to the list of acceptable extensions AND c:\windows\system32 is the first item in the search path (PATH system variable) by default.

    This will not customize the console if it is launched via cmd.exe.

    4. To make this work from the “Run Powershell Here” context menu, save this as a .reg file and import it:

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\PowerShellHere\command]
    @="C:\\WINDOWS\\system32\\cmd.exe /c start powershell -NoExit \"cd '%1';(get-host).ui.rawui.windowtitle = 'Oompa Loompa'\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\PowerShellHere\command]
    @="C:\\WINDOWS\\system32\\cmd.exe /c start powershell -NoExit \"cd '%1';(get-host).ui.rawui.windowtitle = 'Oompa Loompa'\""
    

    I am using cmd.exe to call “start” which will launch the powershell.lnk and pass the current working directory as an argument. Doesn’t seem to work from the address bar yet. I should have gone home 45mins ago, but your problem was fun to solve! 🙂

    Bonus Points: You can thread the commands sent to Powershell. So, if you are looking to modify the Powershell console’s title attribute:

    \"cd '%1';(get-host).ui.rawui.windowtitle = 'Oompa Loompa'"
    

    Simply add a semicolon between commands.

    Happy shelling

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a view passing on information from a database: def serve_article(request, id): served_article
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.