question

Zirigo-3226 avatar image
0 Votes"
Zirigo-3226 asked SimonRenMSFT-3639 commented

SCCM TASK Upgrade Deployment

My environment is running in ConfigMgr 2107 Branch.
I have been tasked to upgrade multiple client machines with SCCM Task Sequence. So far, so good.
Then, the Upgrade package in the task sequence must be in "Pre-Cache" mode to accommodate two nightly reboots. I am able to push the package through Task Sequence in the Pre-Cache mode, which allow the package to fully download on the client machine.
But then, I need a PowerShell script to initiate the installation once the package is fully downloaded on the client machine and I don't know what to do to make it work. I read few articles online that describes the process but I don't see how to implement it in my environment:
1. Should it be to push a package without a program included except the PowerShell Script to initiate the installation automatically?
2. Or, is there a way to include a Powershell script or a command line within the Task Sequence to tell it what to do next once the package has been fully downloaded?

Here is a visual of my task Sequence:
![140869-image.png][1]

Please, I need your help figuring out what to do next.
Thank you so much
PS: We Pre-Cache to avoid the interruptions that are caused by the two nightly shutdown of the client machines.



configuration-manager-osd
image.png (389.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SimonRenMSFT-3639 avatar image
0 Votes"
SimonRenMSFT-3639 answered SimonRenMSFT-3639 edited

Hi,

Thanks for posting in Microsoft Q&A forum.

Per my experience, as the pre-cache task sequence must be deployed as "Available" and then the end user should manually click the "Install" button on the software center to trigger the installation process after the package is fully downloaded. If you would like to initiate the installation automatically, it's recommended your 1 option to initiate the installation. In the option 2, the Powershell script or a command line within the Task Sequence will also not be triggered automatically.

Best regards,
Simon


If the response is helpful, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Zirigo-3226 avatar image
0 Votes"
Zirigo-3226 answered SimonRenMSFT-3639 commented

Thank you Simon for your feedback.
As I have never done either one of the options before, would you provide steps to this accomplished?
Even though option 1 recommends to deploy a package without the program, I can't seem to pass this stage because it asks that I provide some kind of executable.
In Branch 2107, the three options I have to create a package without a program are:
1. Driver Packages
2. Operating System Images
3. Operating System Upgrade Packages

And all three don't seem appropriate to send the PowerShell package deployment in order to initiate the automated installation once the OS is fully downloaded and available in Software Center.
Would anyone provide me with the steps to proceed further?

I gratefully appreciate your help.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thanks for your reply and information.

You could refer to this: How to create SCCM package - PowerShell Script

We can also try to deploy Run PowerShell Script task sequence to the clients. Run PowerShell Script

141712-powershell.png

Best regards,
Simon


0 Votes 0 ·
powershell.png (47.3 KiB)
Zirigo-3226 avatar image
0 Votes"
Zirigo-3226 answered SimonRenMSFT-3639 commented

So from what you've shown above, in the case of the Pre-download package, it is possible to include in the same task sequence a PowerShell script to automate the initiation of the install start once the upgrade image is available in Software Center?
Would you know the exact script to initiate the install once the download is completed?

Thank you again for your input.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thanks for your reply.

You need to create a new task sequence to push the PowerShell script to client. Howerver, to be honest, I'm not very familiar with PowerShell and have no idea to write the exact script. During my research, this may be helpful:
Create Custom Report for SCCM Task sequence Pre-cache Content – Part 2

Best regards,
Simon


0 Votes 0 ·