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

On ‎2017‎-‎03‎-‎28 at 5:33 PM, anyweb said:

 

i was finally able to make this work but only after removing the section in the wrapper.vbs that checked for pending reboot.  For some unknown reason, it always detected that my test system had to be rebooted.

i also had to remove the section that checked for computer model.  We obviously don`t have the same models and i won`t be deploying it to systems that don`t support Windows 10 anyways.

Any insight on my first point above would be great though.  Thanks.

Share this post


Link to post
Share on other sites

9 minutes ago, anyweb said:

it works for me, I\ve tried both the PowerShell and a snippet of vbs code to test for reboot, can you please run it and check what it reports back ?

reboot required false.PNG

 

here\s the test script...

 

checkreboot.vbs

i get : Reboot Required ? Faux   (our systems are in french).  Then when i click "OK", i get a secound box that says "The Computer needs a reboot".

Could it be because your script is looking for the word "False"

1.JPG

Share this post


Link to post
Share on other sites

yup that's it ! mystery solved 

  If objSysInfo.RebootRequired = "False" then

i've rewritten it, it's a boolean operator, please try this code instead

  If objSysInfo.RebootRequired = False then

does it work ?

checkreboot.vbs

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.