When I am working with Powershell, I would like to have my starting directory in the web application that I am working.
In order to change the directory:
Run powershell as administrator and execute the following command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
This will permit PowerShell to run local scripts, and scripts downloaded from the internet that have been signed. Read more about this command in the documentation.
- Create a new file named
profile.ps1 in the
WindowsPowerShell folder. (C:\Windows\System32\WindowsPowerShell\v1.0)
profile.ps1 and add the following command to set your default working directory:
Open a new powershell window… the changes should have taken effect.