Task Sequence with Powershell script RRS feed

  • Question

  • I am trying to do two things with a powershell script.

    Delete a folder and copy a file (overwrite the one that is there).

    Here is what I am doing,

    I have a TS called "TestPSSCript"

    The script "1909Update.ps1" is in the package as is the file SetupComplete.cmd

    Contents of the powershell is:

    Remove-Item -path C:\_SMSTASKSEQUENCE -recurse
    Copy-Item setupcomplete.cmd -Destination c:\Windows\Setup\Scripts -Force

    When I run it on the machine is it deployed to it just sits at installing and the package never even gets downloaded to the CCMCACHE.

    Any help is appreciated

    Thursday, June 25, 2020 6:52 PM

All replies