Litetouch deployment failed

Anonymous
2020-11-09T22:40:20.27+00:00

![38581-e3f4531b-a7fa-4484-8721-528065ad011e.jpeg][1] [1]: /api/attachments/38581-e3f4531b-a7fa-4484-8721-528065ad011e.jpeg?platform=QnA I get above error everytime when I add a PowerShell script to delete default apps. I am making the litetouch in MDT and add it inside WDS. Can someone help me with this issue?

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
902 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,947 questions
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
0 comments No comments
{count} votes

Accepted answer
  1. Gary Blok 1,741 Reputation points
    2020-11-12T21:01:38.077+00:00

    Try changing your command line to this: (perhaps powershell.exe isn't in your path variable?)
    %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass "%SCRIPTROOT%\RemoveApps.ps1"

    Also, check your boot image, if this is running in WinPE, make sure you've enable PowerShell in your Boot Image. Perhaps the "File not found" is referring to your PowerShell.exe

    1 person found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Gary Blok 1,741 Reputation points
    2020-11-09T23:07:00.82+00:00

    From that image, sure looks like it can't find your PowerShell script.
    Can you paste an image of your TS and specifically this step?

    0 comments No comments

  2. Fiona Yan-MSFT 2,311 Reputation points
    2020-11-10T02:38:49.71+00:00

    anonymous user

    Thank you for posting in Microsoft Q&A forum.

    The error code 0x80004005 means Unspecified error,this is a general error,to get better support,we may need to provide more details,as agreed with Gary,could we share our task sequence step screen shoot?

    Have a nice day!


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Anonymous
    2020-11-10T17:31:06.943+00:00

    38881-4.png][1] [1]: /api/attachments/38881-4.png?platform=QnA [@ @Fiona Yan-MSFT I only configure the Remove Apps in above picture. Also configured the Set-Execution Policy bypass. I turned off Recover From Domain as wel. I hope the location of the Remove apps is in the right spot, because I want the default apps gone before the OS is installing.


  4. Anonymous
    2020-11-11T17:21:44.207+00:00

    39087-20201110-213604.jpg][1] [1]: /api/attachments/39087-20201110-213604.jpg?platform=QnA [@ I got the above failure. When I remove the set-executionpolicy bypass and the RemoveApps.ps1 script and deploy the TS, the workstation get's a clean Windows 10 enterprise installation.


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.