Profile in Windows Powershell

Profile allows you to execute certain commands before you launch Powershell.

You can check if profile is set up or not using below command.
Test-Path $Profile

If the output is false, you can create new profile file using below command.

New-Item –Path $Profile –Type File –Force

Then you can put functions and commands to be executed in that profile file.

Below image shows all these commands in action.

profile-in-windows-powershell

profile-in-windows-powershell

 

You may also like...