Get the App
SLTechnology News&Howtos  ›  Servers  › 

Modify the default startup location of powershell

Shulou Source: shulou.com Published: 2022-06-02 22:41:44 09月22日 Update

1. Create a directory named "Windows PowerShell" in the user's document directory

For example:

C:\Users\silence\Documents\WindowsPowerShell

Second, create a file named "profile.ps1" under the Windows PowerShell directory, with the following contents:

Set-Location C:\Users\silence #followed by the startup directory you set

Third, the administrator starts the powershell and enters the following command under the command line interface

set-executionpolicy remotesigned

option is

y

Tags: Directory command content location file document user interface administrator Zhongchuang management input selection location Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi macOS MySQL OPPO Reno