Hello. There was a question related to the error shown in the figure. What is the problem? After all, after the second error, the script runs ????? enter image description here

  • So what's wrong here? Google on the Internet. but it's not that. I really need help. - Muscled Boy
  • Set-ExecutionPolicy Unrestricted -Force execute first - Senior Pomidor
  • @SeniorAutomator, and what does he do? - Muscled Boy
  • Prescribed, but Thermal cursed - Muscled Boy
  • one
    run as administrator (run as administrator) and execute. if there are mistakes, write about it here - Senior Pomidor

1 answer 1

first you need to run Set-ExecutionPolicy Unrestricted -Force , which allows you to run scripts

Source: “ Using the Set-ExecutionPolicy Cmdlet[ archive ] .

  • thank you so much - Muscled Boy