如何更改Win + X PowerShell快捷方式的配色方案?

拉斐尔·基托弗(Rafael Kitover)

因此,为了更改普通的cmd和powershell窗口的配色方案,我使用了它,并且可以正常工作:

https://wiki.mbirth.de/know-how/software/windows/tango-colours-console.html

但是,我找不到任何方法来更改从Win + X菜单中打开的Powershell窗口的配色方案,它们始终使用默认颜色,是否有任何方法可以做到这一点?

快捷方式位于:

C:\ Users \ rkito \ AppData \ Local \ Microsoft \ Windows \ WinX \ Group3

我尝试替换它们,但这不起作用,它们是某种特殊.lnk文件。

3ICE

当您手动启动它并运行时,它以管理员用户rkito的身份完成,并且实际上是注册表中的HKEY_CURRENT_USER。但是Win + X的东西是在NT_AUTHORITY \ SYSTEM下运行的,因此我们也必须修改它们的注册表项。

SYSTEM使用两个HKEY_USERS子项:S-1-5-19是LocalService,S-1-5-20是NetworkService。我还修改了DEFAULT(== 18)只是为了将该设置应用于新创建的用户。为了安全起见。覆盖所有名称空间的毯子触发。

解决方案:将HKEY_CURRENT_USER替换为HKEY_USERS \ S-1-5-18 .. HKEY_USERS \ S-1-5-20以将颜色设置应用于所有帐户。

这是整个* .reg文件:

Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-20\Console] ; Black "ColorTable00"=dword:00000000 ; Blue "ColorTable01"=dword:00a46534 ; Green "ColorTable02"=dword:00069a4e ; Cyan "ColorTable03"=dword:009a9806 ; Red "ColorTable04"=dword:000000cc ; Magenta "ColorTable05"=dword:007b5075 ; Yellow "ColorTable06"=dword:0000a0c4 ; White "ColorTable07"=dword:00cfd7d3 ; Dark Gray (Light Black) "ColorTable08"=dword:00535755 ; Light Blue "ColorTable09"=dword:00cf9f72 ; Light Green "ColorTable10"=dword:0034e28a ; Light Cyan "ColorTable11"=dword:00e2e234 ; Light Red "ColorTable12"=dword:002929ef ; Light Magenta "ColorTable13"=dword:00a87fad ; Light Yellow "ColorTable14"=dword:004fe9fc ; Light White "ColorTable15"=dword:00eceeee

[HKEY_USERS\S-1-5-19\Console] ; Black "ColorTable00"=dword:00000000 ; Blue "ColorTable01"=dword:00a46534 ; Green "ColorTable02"=dword:00069a4e ; Cyan "ColorTable03"=dword:009a9806 ; Red "ColorTable04"=dword:000000cc ; Magenta "ColorTable05"=dword:007b5075 ; Yellow "ColorTable06"=dword:0000a0c4 ; White "ColorTable07"=dword:00cfd7d3 ; Dark Gray (Light Black) "ColorTable08"=dword:00535755 ; Light Blue "ColorTable09"=dword:00cf9f72 ; Light Green "ColorTable10"=dword:0034e28a ; Light Cyan "ColorTable11"=dword:00e2e234 ; Light Red "ColorTable12"=dword:002929ef ; Light Magenta "ColorTable13"=dword:00a87fad ; Light Yellow "ColorTable14"=dword:004fe9fc ; Light White "ColorTable15"=dword:00eceeee

[HKEY_USERS\S-1-5-18\Console] ; Black "ColorTable00"=dword:00000000 ; Blue "ColorTable01"=dword:00a46534 ; Green "ColorTable02"=dword:00069a4e ; Cyan "ColorTable03"=dword:009a9806 ; Red "ColorTable04"=dword:000000cc ; Magenta "ColorTable05"=dword:007b5075 ; Yellow "ColorTable06"=dword:0000a0c4 ; White "ColorTable07"=dword:00cfd7d3 ; Dark Gray (Light Black) "ColorTable08"=dword:00535755 ; Light Blue "ColorTable09"=dword:00cf9f72 ; Light Green "ColorTable10"=dword:0034e28a ; Light Cyan "ColorTable11"=dword:00e2e234 ; Light Red "ColorTable12"=dword:002929ef ; Light Magenta "ColorTable13"=dword:00a87fad ; Light Yellow "ColorTable14"=dword:004fe9fc ; Light White "ColorTable15"=dword:00eceeee

[HKEY_USERS\.DEFAULT\Console] ; Black "ColorTable00"=dword:00000000 ; Blue "ColorTable01"=dword:00a46534 ; Green "ColorTable02"=dword:00069a4e ; Cyan "ColorTable03"=dword:009a9806 ; Red "ColorTable04"=dword:000000cc ; Magenta "ColorTable05"=dword:007b5075 ; Yellow "ColorTable06"=dword:0000a0c4 ; White "ColorTable07"=dword:00cfd7d3 ; Dark Gray (Light Black) "ColorTable08"=dword:00535755 ; Light Blue "ColorTable09"=dword:00cf9f72 ; Light Green "ColorTable10"=dword:0034e28a ; Light Cyan "ColorTable11"=dword:00e2e234 ; Light Red "ColorTable12"=dword:002929ef ; Light Magenta "ColorTable13"=dword:00a87fad ; Light Yellow "ColorTable14"=dword:004fe9fc ; Light White "ColorTable15"=dword:00eceeee

编辑原因:\。逃逸序列使我措手不及。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章