I am getting start with VS Code to learn python on a second hand laptop. Every time I open the VS Code, I always encounter this error message in the terminal. I did not do any adjustment to PowerShell as I am a complete beginner.
. : File C:\Users\user\Documents\WindowsPowerShell\profile.ps1 cannot be
loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:3
+ . 'C:\Users\user\Documents\WindowsPowerShell\profile.ps1'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Even though the error message displays in the terminal, there currently no issue executing python codes as of now. The error code also exist in the "Select Windows PowerShell" .
As of this writing, I suspect that the error message is a result during the installation of VS Code. Nevertheless, I am unsure if the previous owner did any adjustment in the PowerShell or not.
Ending Notes / Update
Does anyone encounter the same PowerShell error when initializing the VS Code? What are your recommended solutions?
Thank you in advance for your responses. I will keep you posted If I find a solution for this.