Run Powershell Script in Windows 11 TS doesn't work

Franz Schenk 361 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 Security | Intune | Configuration Manager | Deployment
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jason Sandys 31,421 Reputation points Microsoft Employee Moderator
    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,666 Reputation points
    2022-08-31T12:35:59.277+00:00

    Did you confirm that PowerShell existing at that location?


  2. Rahul Jindal 11,501 Reputation points
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.