Jump to content


anyweb

How can I forcefully upgrade Windows 7 or Windows 10 to the latest version of Windows 10 using System Center Configuration Manager (Current Branch)?

Recommended Posts

Hi again :)

I have one small issue, when I deploy the script [all configured as per instructions], first I get standard Software Center popup, instead of the hta. The below screen shows the timing to be next available deployment occurrence, for testing purposes I have 9:20 AM daily. Once I click OK on the below, only then the hta windows is brought with all the user information and deferrals count. Am I missing something maybe?

image.png.fb378dcd4f1840cd00705a3e266b501a.png

Share this post


Link to post
Share on other sites


have you tried modifying your client agent settings,  you can make custom client settings for these specific  collections if needed

 

Share this post


Link to post
Share on other sites
3 hours ago, anyweb said:

have you tried modifying your client agent settings,  you can make custom client settings for these specific  collections if needed

 

imageproxy.php?img=&key=588032a05702b0f0imageproxy.php?img=&key=588032a05702b0f0imageproxy.php?img=&key=588032a05702b0f0

Ohh yes, should have thought about this. Will check tomorrow then :)

Share this post


Link to post
Share on other sites

also check your User Notification settings on the task sequence properties, here's an example. It will only display IF the user launches the required upgrade from the software center

 

image.png

Share this post


Link to post
Share on other sites

Hi Niall

Thank you. Tthis is what I already have in the TS, with some custom information like new default BitLocker PIN after completion etc :)

The side effect of hiding the Software Center notification to have TS initiate the program without the standard message as above is that at the same time the monthly updates can be running.

I have clicked Upgrade Now, but the updates were already running [or just started] so the upgrade did not start straightaway, letting updates to complete. Once updates were completed, the Upgrade has resumed and TS initiated, but the script has skipped the condition for reboot, as this was checked before the updates completed. 

2018-03-06 12:28:34 Upgrade_Forced found in HKCU, checking for DO_NOT_UPGRADE.txt file...
2018-03-06 12:28:34 C:\ProgramData\DO_NOT_UPGRADE.txt doesn't exist. Upgrade is allowed
2018-03-06 12:28:34 creating Upgrade_Forced.txt file
2018-03-06 12:28:34 Checking is model supported...
2018-03-06 12:28:34 Model detected=20FAS4RU0K
2018-03-06 12:28:34 Computer model is supported
2018-03-06 12:28:34 Checking for on battery...
2018-03-06 12:28:34 computer does have a battery...
2018-03-06 12:28:34 computer IS connected to Power...
2018-03-06 12:28:34 computer IS connected to Power...
2018-03-06 12:28:34 Checking for free disc space...
2018-03-06 12:28:34 computer has more than 25GB disc space...181.87
2018-03-06 12:28:34 Checking for VPN...
2018-03-06 12:28:35 VPN not found...
2018-03-06 12:28:35 Checking for pending reboot...
2018-03-06 12:28:35 computer did NOT need a reboot...
2018-03-06 12:28:35 exiting wrapper script with exit code 0
2018-03-06 12:28:35  The registry value does  not exist.
2018-03-06 12:28:35  The 5 registry value exists, deleting it !.
2018-03-06 12:28:35 exiting wrapper script with exit code 0, task sequence should begin after this...

And the upgrade has started at 2PM approximately. 
 

Share this post


Link to post
Share on other sites

ok i understand your scenario, i guess the wrapper would have to be modified to do an additional check for that, i'll see if it's possible and update the thread if i can

Share this post


Link to post
Share on other sites

you could modify Eswar's script here to detect/verify that there are no updates pending, and if so allow it to continue

http://eskonr.com/2016/11/sccm-configmgr-powershell-script-to-install-software-updates-on-remote-clients/

 

cheers

niall

Share this post


Link to post
Share on other sites

Hi Niall,

First, thank you very much for this thread and your site. I am a new member, but I have been browsing this board for months. Excellent work. A gold mine for admins.

For some reason, my image is stuck here and it has been this way for quite some time. It happens after downloading the OS. What could be the issue? I can use that OS package for my regular images.

Thanks.

UpgradeWindows10.jpg

Share this post


Link to post
Share on other sites
First, thank you very much for this thread and your site. I am a new member, but I have been browsing this board for months. Excellent work. A gold mine for admins. 

thanks for the kind words ! and welcome to windows-noob :-)

as regards your issue it's hard to tell without seeing the logs, so can you please zip up and attach your smsts*.log file from c:\windows\ccm\logs\SMSTSLOG here

Share this post


Link to post
Share on other sites

i didn't see the smsts.log in that zip couldn't you find it ?

Share this post


Link to post
Share on other sites

no that's only one of the two logs, there should always be a smsts.log and sometimes one or more smstsxxxxxxxxx.log files

basically, your log did not show any issues related to it not upgrading

Share this post


Link to post
Share on other sites

Hi Niall,

This is such a great resource, thank you so much for the time and effort put into this.  I am having an issue with the deployment of the upgrade.  I previously had it working but after downloading the updated scripts and trying to deploy, the upgrade takes 5 seconds and reports to Software Center that it was successful.  Looking through the attached SMSTS log, it looks like it is evaluating the 'Is upgrade allowed to run' initial step to be false, and therefore, it skips Upgrade the OS step because Upgrade_Forced variable is False. 

Trying to look through the log, I don't see why it is evaluating to False. C:\ProgramData\Upgrade_Forced.txt does exist, the system version is 14393 and c:\programdata\DO_NOT_UPGRADE.txt does not exist.  Can you shed any light on this?

Cheers

Doug

smsts.log

Share this post


Link to post
Share on other sites

hi Doug

thanks !

from your smsts.log it's not allowing the task sequence to proceed because it does not see the file 'upgrade_forced.txt' file, that file SHOULD be created in the following scenarios

  • User clicks upgrade now
  • HTA times out and there are no deferrals left

so can you tell me how you are getting to the actual task sequence running, is this after the user has clicked upgrade now ? did you verify that the file existed there or not before the task sequence runs ?

can you share your Windows10RequiredUpgradeWrapper.log  file as well please so i can see what it says

cheers

niall

Share this post


Link to post
Share on other sites

Hi Niall,

 

Thank you for your comments.  I have attached the requested log here, but it looks like it has no errors and is passing the 0 exit code.  The file Upgrade_Forced.txt exists in ProgramData with content 'Upgrade selected'.  This is within a test VM that I have clicked on 'Upgrade now'.  I think I will revert the snapshot back a day, before I made any attempts to upgrade and see if something in my testing has affected the behaviour.

Many thanks,

Doug

Windows10RequiredUgradeWrapper.log

 

EDIT:  I reverted snapshot and tried again but suffer from the same problem as before...

Edited by doug.morrison

Share this post


Link to post
Share on other sites

Aha!  Mystery solved.  I had made a small mistake with the IF statements for 'is upgrade allowed to run'.  I had the last IF statement running as a child of the second.  Removing this and putting it inline with top, IF..All, and my machine is now upgrading.  Thanks for the pointer and for your time in responding.

Doug

Share this post


Link to post
Share on other sites

hi Doug

glad you found the bug as it saved me from re-testing the code to verify that i hadn't added a bug :)

cheers

niall

Share this post


Link to post
Share on other sites

hi Christian, I don't see why not, have you tried ?

Share this post


Link to post
Share on other sites

have you tried adding this (the charset)

 

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

 

i've just tested it and it works fine with Swedish characters

image.png

 

Share this post


Link to post
Share on other sites

hi Christian i'm glad to hear it and good luck with this !

Share this post


Link to post
Share on other sites

Hi Niall!

I just performed an In Place Upgrade with success. When the task sequence succesfully ended and the computer reported version 10.0.16299 (as the target build number specified), the wrapper sent exit code 99 to Config Mgr because of the target build check. However, this is wrongfully shown as an error in the task sequence deployment in Config Mgr. Is this per design? Or am I missing anything? 

Regards, Christian

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...