Windows 10: Can’t run PowerShell script in Windows 11

Discus and support Can’t run PowerShell script in Windows 11 in Windows 10 News to solve the problem; [IMG]PowerShell scripts are used to automate repetitive tasks and make some changes to your system’s configuration. However, we have noticed that at... Discussion in 'Windows 10 News' started by WinClub, Jun 5, 2025 at 4:42 PM.

  1. WinClub New Member

    Can’t run PowerShell script in Windows 11


    Can’t run PowerShell script in Windows 11 [​IMG]
    PowerShell scripts are used to automate repetitive tasks and make some changes to your system’s configuration. However, we have noticed that at times, Windows can’t run a PowerShell script in Windows 11/10. This issue can be frustrating as .PS1 scripts allow you to do a lot of tasks easily. In this post, we are going to talk […]

    This article Can’t run PowerShell script in Windows 11 first appeared on TheWindowsClub.com.

    read more...
     
  2. Studynxx Win User

    Powershell / Batch scripts do NOT run!

    Please help me. I have written some powershell and batch scripts, yet when I run those files, they don't run. At most the powershell script just does step #1 but not all the other steps (lines of code / instructions). The batch script .bat file doesn't do anything. Both just pop up for like 2 seconds and then they disappear, Task Manager says nothing's being done.
     
  3. Brink Win User
    Microsoft PowerShell scripts to fix WinRE bypass on Windows 10 and 11

    Source: https://support.microsoft.com/en-us/...3-e13eb56fb589
     
  4. PrasanRP Win User

    Can’t run PowerShell script in Windows 11

    Unable to execute the Powershell scripts on Windows 11

    Hi,

    I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.

    But, I am unable to execute it on Windows 11.

    So, I have tried executing the PS1 script is multiple ways,

    1. Right click -> Run Powershell

    => Powershell screen was blinked and gone.

    2. Launched the Powershell cmdlet with administrator and navigated to the script file location. Then executed the PS1 file.

    => refer the image for the error when we execute the script.

    3. Finally, I tried changing the execution policy using the Powershell cmdlet and I was able to execute my script (which was working in win10).

    Here, my question is the same script is working fine with Win10 without changing any policy. Then why it is not working with Win11 .

    1. Why it is required to change the policy ?

    2. Is it possible to execute the script in win11 without changing the policy ?

    3. What would be the root cause ? why is is not allowed ?

    4. What is the default execution policy for win 10 and win11 ? how it differs on execution?

    Please help me to understand the Powershell behavior and root cause of the problem.
     
Thema:

Can’t run PowerShell script in Windows 11

Loading...
  1. Can’t run PowerShell script in Windows 11 - Similar Threads - Can’t run PowerShell

  2. Cannot get PowerShell script to run

    in Windows 10 Gaming
    Cannot get PowerShell script to run: Hi,No matter what I try I cannot get permission to run a .ps1 file. I always get this error:& : File C:\Program Files\putty\pagentpass.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at...
  3. Cannot get PowerShell script to run

    in Windows 10 Software and Apps
    Cannot get PowerShell script to run: Hi,No matter what I try I cannot get permission to run a .ps1 file. I always get this error:& : File C:\Program Files\putty\pagentpass.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at...
  4. Run desktop script in PowerShell

    in Windows 10 Network and Sharing
    Run desktop script in PowerShell: I have a script on my desktop that I need to run in PowerShell; how do I do that? https://answers.microsoft.com/en-us/windows/forum/all/run-desktop-script-in-powershell/666a7726-8cbd-42c7-ac2c-419229432252
  5. Run desktop script in PowerShell

    in Windows 10 Gaming
    Run desktop script in PowerShell: I have a script on my desktop that I need to run in PowerShell; how do I do that? https://answers.microsoft.com/en-us/windows/forum/all/run-desktop-script-in-powershell/666a7726-8cbd-42c7-ac2c-419229432252
  6. Run desktop script in PowerShell

    in Windows 10 Software and Apps
    Run desktop script in PowerShell: I have a script on my desktop that I need to run in PowerShell; how do I do that? https://answers.microsoft.com/en-us/windows/forum/all/run-desktop-script-in-powershell/666a7726-8cbd-42c7-ac2c-419229432252
  7. PowerShell script

    in Windows 10 Support
    PowerShell script: The code below tests a series of IPs in a txt file.The result is as follows and is written in a txt file. 19.191.12.161 - online 19.191.12.162 - offline 19.191.12.163 - offline 19.191.12.164 - offline 19.191.12.165 - offline also see the scrennshot Code: $Output= @()$GetIP =...
  8. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  9. Run PowerShell Script As An Administrator

    in Windows 10 Support
    Run PowerShell Script As An Administrator: Hi. So I've been searching online on a way to do this yet I cannot find a way to do it. _______________________________________ I need this in specific: I want to double click a PowerShell script file (which will run as an administrator) from Windows Explorer that has...
  10. PowerShell Scripting - Run a Script from Shortcut

    in Windows 10 Tutorials
    PowerShell Scripting - Run a Script from Shortcut: How to: PowerShell Scripting - Run a Script from Shortcut [img] Information One of many PowerShell security features is that you can't run a script simply by double clicking it's icon on desktop or in a folder. Doing so will by default open script in Notepad for editing...