Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Task Sequence with Powershell script

$
0
0

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


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>