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

there are two main options:

 

  • change the deployment schedule, when you deploy it you create a schedule, by default in my blog post it runs every day at 11am, you can change that to run every 2 days or whatever schedule you want, does that help ?
  • the other place is a timer is in the upgrade.hta, in that if the user ignores the popup (clever users...) then it will auto-timeout after 8 hours or so, and reduce the deferals by one, here's the section of code to edit, it's in milliseconds so 8 hours...

https://duckduckgo.com/?q=28800000+milliseconds+to+hour&t=ffab&ia=answer

 

 ' is the user ignoring the HTA ? if so, let's exit 99 and remove one deferral after <scheduled time>
       ' Note: this value must be LESS than the schedule of your deployment
       ' Note: this value must be MORE than the HTA countdown (pbwaitTime)
        iTimerID = window.setInterval("UserIgnoringHTA", 28800000)

 

Share this post


Link to post
Share on other sites

Hi Niall, 

I´m working on adding the new version of your great tool and noticed a reg value that looks out of Place.

In the upgrade.hta, line 352 "//var key = "HKCU\\Software\\windowsnoob\\UpgradeComputer";"

Shouldn´t this line also be something like " + CompanyName + "?

 

Kind regards

Share this post


Link to post
Share on other sites

if you open the HTA using Notepad ++ and change the Language used to VBScript (VBS) or HTML in Notepad ++ you'll see it format the HTA nicely and it'll make more sense.

Share this post


Link to post
Share on other sites

thanks !

you need to cut out this bit

image.png

and then modify this function to ensure that Upgrade Now button is not disabled

 

function disable_enable(){
    if (document.getElementById("Checkbox1").checked == true)
      //alert('checked');
      document.getElementsByName("run_vbscript_button").item(0).disabled = false;
    else
    //alert('not checked');
    document.getElementsByName("run_vbscript_button").item(0).disabled = true;

 

cheers

niall

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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.