we are deploying updates through sccm but because this patch needs to be install after feature update (we cant wait for sccm to push this patch)
Install patch through batch file show soft reboot
HI,
I have cmd file which installs the patch but not reboots the machine e.g. wusa.exe patch.msu /quiet /norestart
Then I have a PowerShell script which runs some clean-up and then it checks for any reboots and if a reboot is required I want to notify the user that reboot is required (SCCM Notify message).
If I put following code into my PowerShell will it show reboot is required message?
[System.Environment]::ExitCodde =3010
All of the machines have SCCM client install on them, Patch cant be push by sccm as we installing the patch as part of an application.
4 answers
Sort by: Newest
-
-
Youssef Saad 3,401 Reputation points
2020-12-11T08:51:25.263+00:00 The software update will be deployed based on the deployment settings (available/required deployment, deployment installation deadline etc) and once Its cycle is running on the client side.
So what you have to do is first check your Client settings (policies schedule and software update scan/deployment).
Deploying software updates using SCCM is much better than using a simple Powershell script, because ConfigMgr manage the dependencies and also if there is any required reboot (showing a popup to the user etc).
Regards,
Youssef Saad | New blog: https://youssef-saad.blogspot.com
Please remember to ** “Accept answer” ** for useful answers, thank you! -
lalajee 1,811 Reputation points
2020-12-10T11:57:32.647+00:00 I'm doing a feature update from 1809 to 1909 but it's breaking the search bar so the fix is to apply a patch which I'm doing during a postoob
My cmd file installs the patch and then runs a PowerShell script which checks for the reboot is required and also logs other information into a log file.
Is it possible to tell the SCCM client a reboot is required so SCCM client can handle the restart as in show message to user that reboot is required same as any other update?
I try following at the end of my PowerShell script but that didn't work
EXIT 3010
-
lalajee 1,811 Reputation points
2020-12-10T11:46:59.15+00:00 The patch can be a push by SCCM but it takes time, So when we apply an application which requires this update we want to be able to install without waiting.
I just want to install the update asap.
My cmd file installs the patch and then runs a PowerShell script which checks for the reboot is required and also logs other information into a log file.
Is it possible to tell the sccm client a reboot is required so sccm client can handle the restart?