Windows 10: Stop Windows 10 Updates Properly and Completely

Discus and support Stop Windows 10 Updates Properly and Completely in Windows 10 Updates and Activation to solve the problem; I did not know you are French. I'm not, but a major contributor of code to this script, rpo, is. Discussion in 'Windows 10 Updates and Activation' started by EdTittel, Feb 24, 2018.

  1. pf100 Win User

    Stop Windows 10 Updates Properly and Completely


    I'm not, but a major contributor of code to this script, rpo, is.
     
    pf100, Mar 26, 2018
    #31

  2. The following screenshot shows how I have prevented automatic downloading of updates by changing the DWORD value of Default in DefaultMediaCost from 1 to 2, which denotes a metered connection.


    Stop Windows 10 Updates Properly and Completely [​IMG]
     
    Matthew Wai, Mar 28, 2018
    #32
  3. Try3 Win User
  4. Try3 Win User

    Stop Windows 10 Updates Properly and Completely

    Like Matthew & some of the others, I have also relied on metered connections to avoid updates.
    - I have not messed with any services.
    - This has worked well.
    - I do also manually check each known network if I have to repeat the metered defaults because if I have fiddled with their metered settings individually beforehand they can stop falling into line with the default setting.
    - There were occasionally worrying 'last updated' indicators in Settings, Updates, WU so I have added in the withdrawal of permissions from usoclient.exe that is also described in this thread.
    - I have still never needed to alter any services.

    One of the benefits of the metered-connections-with-castrated-usoclient approach is that it is very easy to monitor and it does not change during a Windows session [updates that might change it do so during reboots].
    - I run an elevated TS task triggered by Log on [separate TS task for each user because it needs an interface to report problems].
    - If I have installed an update that has reset the default metered settings or usoclient ownership [set to Administrators as part of the permissions removal procedure given earlier in this thread], I get told within a few seconds of re/starting the computer.

    This is the heart of my monitoring batch file. I have removed most of the reporting bits & bobs because they would merely be a distraction but [26/4/18] have added in a very, very basic reporting mechanism so that you can see it all working.

    Code: :: This must be run as Admin prompt $g Title CriticalSystemChecks :: Check default metered settings Set MeteringOutputFile=%Temp%\%Random%-MeteredCheck.txt Set /a MeteringCounter=1 Set MeteringAlarm=Off :CheckStatus :: Set parameter to examine for each loop If %MeteringCounter% EQU 1 Set MeteringCheck=WiFi If %MeteringCounter% EQU 2 Set MeteringCheck=Ethernet If %MeteringCounter% EQU 3 Set MeteringCheck=Default Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost" /t REG_DWORD | Find "%MeteringCheck% REG_DWORD" >%MeteringOutputFile% set /p MeteringSetting=<%MeteringOutputFile% If not "%MeteringSetting:*x=%"=="2" (Set MeteringAlarm=On) & GoTo EndMeteredCheck Set /a MeteringCounter=%MeteringCounter%+1 If %MeteringCounter% LEQ 3 GoTo CheckStatus :EndMeteredCheck del %MeteringOutputFile% :: Report only if one or more are set to non-metered [i.e. their values were not 2 - this includes unexpected error values] If "%MeteringAlarm%"=="Off" GoTo FindUSOClientOwner Call :Reporting "Not all network types are metered" GoTo FindUSOClientOwner :FindUSOClientOwner Set /a OutputCounter=0 Set Owner= For /F "usebackq tokens=4 " %%X in (`dir "%WINDIR%\System32\UsoClient.exe" /q`) Do Call :ExtractOwner %%X Set Owner=%Owner:*\=% If "%Owner%"=="Administrators" GoTo NFA Call :Reporting "USOClientOwner is not Administrators" GoTo NFA :ExtractOwner :: Capture line 3 Set /a OutputCounter=%OutputCounter%+1 If %OutputCounter% EQU 3 Set Owner=%1 GoTo :EOF :Reporting :: This is normally a dialog box using variables set in each stage but mostly removed above to avoid distracting from the main point of the post Pause This is a very, very basic reporting tool - %1 GoTo :EOF :NFA :Stop Windows 10 Updates Properly and Completely :pause at end during testing[/quote] I hope this is useful,

    Denis
     
  5. @ Try3: I manually changed the DWORD value of Default from 2 to 1 in DefaultMediaCost and then ran your script, but nothing happened.
     
    Matthew Wai, Apr 24, 2018
    #35
  6. Try3 Win User
    Matthew,

    No, nothing would. As I wrote above, the :Reporting section was removed to allow focus on the main point of the script.
    - Under :Reporting add a pause line so you can see that it works.
    - I've altered the script above to include this now.

    I did not want to get into a big debate about the merits of different ways of reporting back to the user.

    1 You could call a vbs procedure to bring up a MsgBox. I have posted each of my standard batch file [caller] and vbs file [callee] for MsgBox**, PopupBox** & InputBox.
    ** The first two include OnTheFly versions that require no calls to separate vbs files.

    2 You could use a host of special-purpose reporting tools. I use an hta procedure that is run by a batch file [caller] and VBS file [callee]. [Edited 11:18 BST Thursday 26th April 2018] I call it CustomMsgBox. The batch file, the VBS file, an explanatory document and some sample Taskbar icons for them are posted online for download in the same folder as the tools in para 1.

    Stop Windows 10 Updates Properly and Completely [​IMG]

    Denis
     
  7. topgundcp Win User
    Here's a small freeware you guys might want to take a look ie. Stopupdates10:
    Download StopUpdates10 1.0.7

    One click to stop, one click to resume.

    Stop Windows 10 Updates Properly and Completely [​IMG]
     
    topgundcp, Apr 25, 2018
    #37
  8. Stop Windows 10 Updates Properly and Completely

    With the added line, now there is a pause whether the DWORD values are 1 or 2.
     
    Matthew Wai, Apr 25, 2018
    #38
  9. Try3 Win User
    Matthew,

    1 You have set Wifi, Ethernet & Default to metered [2]?
    2 You have given ownership of usoclient to administrators [as part of disabling it using the procedure somebody posted earlier on in this thread]?
    3 You are running the batch file as admin? The FindUSOClientOwner section always fails if you do not do so.

    I ran this version of the batch file on my own computer to make sure that I had not made a mistake when chopping out the reporting subroutines. It works correctly.

    Try seeing what fails by taking out the :: on the last line so it waits for you to close it.

    Denis
     
  10. Try3 Win User
    Matthew,

    I have added a very, very basic reporting mechanism to the :Reporting sub-routine and have also added arguments to both the Call :Reporting lines to support that.

    Denis
     
  11. Try3,

    I changed the display language from Chinese to English and rebooted it. Now there is no pause. Does that mean your script does not apply to Chinese?
     
    Matthew Wai, Apr 25, 2018
    #41
  12. Try3 Win User
    Matthew,

    I have not used it in anything other than an English-language computer and I know nothing of developing international versions.
    - Having said that, I read your earlier posts and thought the relevant parts would be the same.
    - I have always thought that the batch file commands themselves were the same in all language versions.

    In my English-language version -

    1 The metered settings key looks like this

    Stop Windows 10 Updates Properly and Completely [​IMG]

    so if yours has the same key path-name & displays the same values that part of it should work.

    2 The response to the core part of the USOClient check
    Code: dir "C:\WINDOWS\System32\UsoClient.exe" /q[/quote] looks like this when entered in an Admin command window on its own

    Stop Windows 10 Updates Properly and Completely [​IMG]

    so if your response has the same layout [BUILTIN\Administrators] & the same spelling of Administrators it should work

    2.1 Administrators is the name of the user group to which all admin-level user accounts belong. You can check the spelling in use on your computer by entering the command
    net user <YourAdminAccountUserName>
    then checking the spelling used on the Local Group Memberships line of the output

    Stop Windows 10 Updates Properly and Completely [​IMG]


    2.2 The batch file lines
    Code: Set Owner=%Owner:*\=% If "%Owner%"=="Administrators" GoTo NFA[/quote] remove the \ and everything before it from ... BUILTIN\Administrators then compare the remaining characters to the word "Administrators" because that is the ownership achieved by the first command in the procedure to remove permissions from USOClient.exe
    Code: takeown /f "%systemroot%\System32\UsoClient.exe" /a[/quote] [see, for example, post #25 above]

    In case this does not resolve matters, I have posted a text file showing the whole progress of a successful run of the batch file. At which line do your results differ?

    Denis
     
  13. Stop Windows 10 Updates Properly and Completely

    When the display language is English, it shows the following:

    Stop Windows 10 Updates Properly and Completely [​IMG]


    When the display language is Chinese, it shows the following:

    Stop Windows 10 Updates Properly and Completely [​IMG]


    It is "Computer" in English, while it is "電腦" in Chinese. Could that be the problem?

    The syntax of the command is incorrect. See below:

    Stop Windows 10 Updates Properly and Completely [​IMG]
     
    Matthew Wai, Apr 25, 2018
    #43
  14. In English, it shows the following:
    Stop Windows 10 Updates Properly and Completely [​IMG]


    In Chinese, it shows the following:
    Stop Windows 10 Updates Properly and Completely [​IMG]

    I see no difference in the layout and spelling.
     
    Matthew Wai, Apr 25, 2018
    #44
  15. I cannot find "... BUILTIN\Administrators" in the batch file.
     
    Matthew Wai, Apr 25, 2018
    #45
Thema:

Stop Windows 10 Updates Properly and Completely

Loading...
  1. Stop Windows 10 Updates Properly and Completely - Similar Threads - Stop Updates Properly

  2. Updates completely stopped working.

    in Windows 10 Installation and Upgrade
    Updates completely stopped working.: After AI installed on my computer Updates completely stopped working. Cannot get History. Troubleshooter cannot find the issue.* Changed to a question https://answers.microsoft.com/en-us/windows/forum/all/updates-completely-stopped-working/8874ea56-49f9-42e0-be4e-c2004cfcac01
  3. Updates completely stopped working.

    in Windows 10 Gaming
    Updates completely stopped working.: After AI installed on my computer Updates completely stopped working. Cannot get History. Troubleshooter cannot find the issue. https://answers.microsoft.com/en-us/windows/forum/all/updates-completely-stopped-working/8874ea56-49f9-42e0-be4e-c2004cfcac01
  4. Updates completely stopped working.

    in Windows 10 Software and Apps
    Updates completely stopped working.: After AI installed on my computer Updates completely stopped working. Cannot get History. Troubleshooter cannot find the issue. https://answers.microsoft.com/en-us/windows/forum/all/updates-completely-stopped-working/8874ea56-49f9-42e0-be4e-c2004cfcac01
  5. Updates completely stopped working.

    in Windows 10 Installation and Upgrade
    Updates completely stopped working.: After AI installed on my computer Updates completely stopped working. Cannot get History. Troubleshooter cannot find the issue. https://answers.microsoft.com/en-us/windows/forum/all/updates-completely-stopped-working/8874ea56-49f9-42e0-be4e-c2004cfcac01
  6. Window 10 update not completed

    in Windows 10 Installation and Upgrade
    Window 10 update not completed: Hi, I have tried to update the windows 10 latest version in my Laptop but unable to do so, the installation percentage showing 99% since past 24 hrs, how do I fix the issue please let me know. Note - I have install Windows Assistant...
  7. Windows 10 update will not complete

    in Windows 10 Installation and Upgrade
    Windows 10 update will not complete: I had to reload windows on my computer and it is operational and functional but there are a lot of updates to be applied. It downloads and runs but never completes. It sits at 99% on Getting your update ready. I leave it overnight and it never completes. I reboot and...
  8. Windows 10 Home Edition v2018 - STOP WINDOWS UPDATE COMPLETELY

    in Windows 10 Installation and Upgrade
    Windows 10 Home Edition v2018 - STOP WINDOWS UPDATE COMPLETELY: Hi I have Windows 10 Home Edition v2018 How do I stop windows update ? every single time i restart my laptop , The windows update starts runs for 20 minutes completes and than upon restart i get message sorry we couldnt complete the updates and than another 20 minutes...
  9. Windows 10 will not complete updates

    in Windows 10 Installation and Upgrade
    Windows 10 will not complete updates: Ver: 1803, build: 17134.345 Windows Update tells me that my device is missing important security and quality fixes. When check for updates is selected, it cannot find anything to update. Is this a new bug that is being worked on or a hidden check box that I'm not aware of?...
  10. How to Stop the Updates.......... Completely

    in Windows 10 Updates and Activation
    How to Stop the Updates.......... Completely: Good afternoon, How do I get the updates to stop. I want to do a COMPLETE stop of the updates. 106312