How to change the powershell prompt?

Hi Friends,

I’m doing Power shell automation. I need to change the power shell prompt to only “>” (Right angle Bracket) as below:

[ComputerName]: PS C:>

Here i need to remove the computer Name.

Kindly suggest PowerShell Commands.


1 Like

Sorry, Not able to get it completely.

Could you please elaborate ?

I need to remove the computername, PS, filelocation from the prompt. And make it only “>”.Hope below Screenshot help.

1 Like

Try this may be.

Get-Command Prompt

Thanks :slight_smile:

@Nithinkrishna Using Get-Command Prompt we can only get the prompt.