To open PowerShell using Windows Terminal Preview, follow these steps:
- Right-click on the Start button and select
Windows Terminal Previewfrom the context menu.
Alternatively, you can open Windows Terminal Preview from the Run dialog box:
- Press
Win + Rto open the Run dialog box. - Type
wt.exeand pressEnter.
By default, Windows Terminal Preview opens with the PowerShell profile. If you want to change the default profile, you can create a new profile or modify an existing one.
Here's an example of how to create a new profile for PowerShell:
- Open Windows Terminal Preview.
- Click on
+ New Tabto open a new tab. - Click on
Settings (gear icon)in the top-right corner of the window. - In the settings pane, go to the
profiles.jsonsection. - Find the
"defaults"object, and add a new object for PowerShell:
{
"guid": "{your-unique-guid}",
"name": "PowerShell",
"commandline": "powershell.exe",
"hidden": false
}
Replace {your-unique-guid} with a unique GUID. You can generate a GUID using online tools or by running Get-Random -Count 1 | ForEach-Object { [System.Guid]::NewGuid() } in PowerShell.
- Save the changes and close the settings pane.
- The new PowerShell profile should now be available in the profile picker. You can select it as the default profile by clicking on the current profile name and selecting
PowerShell.
For more information about profiles and customizing Windows Terminal Preview, refer to the official documentation.
References: