How to hide the «Administrator:» prefix from the `cmd` window title?

2023-04-30--19-58-48

2023-04-30--19-59-08

Step 1

Locate the cmd.exe.mui file in the %SYSTEMROOT%\System32\en-US folder:

2023-05-02--00-46-59

Step 2

Take ownership of the file from «TrustedInstaller».

Step 3

Grant all permissions for the file to «Administrators»:
2023-04-30--20-37-19
2023-04-30--20-37-30

Step 4

Run the script in PowerShell 5.1 (is does not work in PowerShell 7).

Result:

2023-05-02--01-07-26

Windows Terminal

2023-05-02--01-10-05