Is it possible to set powershell opacity through commandline

Question:

New to powershell & .NET.

It is possible to configure powershell console colors.

However how can i set the opacity of the window. It seems that the InternalHostRawUserInterface class’s property takes an enum ConsoleColor.

Is it possible to set the windows transparency?

Answer:

As Joey mentioned in his comment, you’ll have to talk to a low-level API to modify the transparency of the window.

Using this example, we can adapt it to PowerShell like so:

And then use it like:

Which will then set the opacity of the window to 50%

Source:

Is it possible to set powershell opacity through commandline by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply