Run Powershell Script in Windows 11 TS doesn't work

Franz Schenk 341 Reputation points
2022-08-31T08:44:04.68+00:00

Try to run a Powershell Script from a TS that is deploying Windows 11. Using SCCM 2203 with HF Rollup.
TS Action "Run Powershell Script" with the option "Run the script from a package". Execution Policy "Bypass"

The TS Step fails with the following error:

PowerShell.exe does not exist at 'X:\windows\system32\windowspowershell\v1.0\powershell.exe'
Run PowerShell script failed to run, hr=0x80070490

Any advice? Thank you in advance.
Franz

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
990 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Jason Sandys 31,306 Reputation points Microsoft Employee
    2022-09-01T17:20:59.697+00:00

    Are you sure the system is not in WinPE? Can you post the entire log?

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Garth Jones 1,661 Reputation points
    2022-08-31T12:35:59.277+00:00

    Did you confirm that PowerShell existing at that location?


  2. Rahul Jindal [MVP] 10,196 Reputation points MVP
    2022-08-31T22:17:10.383+00:00

    At what stage is the step running in the TS? What are you trying to run as part of the script?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.