You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
powershell profile
About this tag
A PowerShell profile is a script that runs automatically when a PowerShell session starts, allowing you to customize your environment. Common uses include setting environment variables, importing modules, defining functions and aliases, configuring logging, and altering the prompt. This can save time and reduce errors by automating repetitive commands. For users connecting via SSH, configuring the default shell to PowerShell involves editing the sshd_config file on the Windows machine to specify the PowerShell executable path. The profile script itself is typically stored in a specific location within your user or system folders and can be edited with any text editor. Understanding how to create and manage your PowerShell profile helps streamline your workflow and personalize your shell experience.
If you launch the same commands every time you open a PowerShell session, a properly crafted PowerShell profile will save time, reduce repetitive errors, and make your shell feel tailored to the way you work.
Background / Overview
PowerShell’s profile is nothing more than a PowerShell script...
I have a Linux Fedora42 workstation and I login from Linux into a Windows11 Pro computer on the same network ... it work OK.
But I want to be logged into Powershell instead of cmd on the Windows computer.
What I did was to add following line:
Subsystem powershell...