Fix PowerShell cannot Load WindowsPowerShell\profile.ps1 on Windows 10 – PowerShell Tutorial

By | May 2, 2020

When we are using python nni package for hyper-parameter tuning, we have find this error: cannot load file C:\Users\fly165\Documents\WindowsPowerShell\profile.ps1. In this tutorial, we will introduce how to fix this error.

1.Start powershell as administrator

You can follow this tutorial to run powershell as administrator.

Best Practice to Open Powershell on Windows 10

2.Type set-ExecutionPolicy RemoteSigned

After having opend powershell, you can type set-ExecutionPolicy RemoteSigned.

Fix PowerShell cannot Load WindowsPowerShell profile.ps1 on Windows 10

Then press Y.

This error will be fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *