\WindowsPowerShell\profile.ps1 cannot be loaded because running scripts is disabledon this system.


Your system is blocking script execution due to PowerShell’s execution policy settings. To fix this, follow these steps:

Solution: Change Execution Policy

  1. Open PowerShell as Administrator
    • Click Start, type PowerShell, right-click Windows PowerShell, and choose Run as administrator.
  2. Run the following command to allow script execution: powershellCopy codeSet-ExecutionPolicy RemoteSigned -Scope CurrentUser
    • If prompted, type Y and press Enter.
  3. Try running your script again.

Leave a Reply

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