Stop Windows 10 Updates Properly and Completely Solved

Page 33 of 34 FirstFirst ... 2331323334 LastLast
  1.    #321

    Matthew Wai said: View Post
    In your script, the variable is "%~dp0", which creates a bad path name.
    In my script, the variable is split(wscript.scriptFullName, wscript.scriptname)(0), which does not create a bad path name. It is impossible to do so via CMD script.
    It is possible to do so via VBScript.
    Is there a reason why you can only use CMD but not VBScript?
    No reason, I just didn't know how. Now I do since you showed me. The script is already a mixture of CMD and VBScript so I'll fix it. Thanks.
      My ComputerSystem Spec

  2.    #322

    @Matthew Wai I showed your solution to the non-english path name problem to @rpo at MDL forum who wrote the vbscript portion of the wrapper script code (I'm a horrible vbscript programmer and can only make modest edits, I only know batch script) so he came up with this solution ("%~dp0" was not the problem after all):
    In wrapper script 2.5.5 change this code in lines 337 and 410 (change highlighted in blue)
    Code:
    echo Set Fso=CreateObject^("Scripting.FileSystemObject"^):Set f=Fso.CreateTextFile^(fso.GetSpecialFolder^(2^) ^& "\task.xml",True^)
    to this
    Code:
    echo Set Fso=CreateObject^("Scripting.FileSystemObject"^):Set f=Fso.CreateTextFile^(fso.GetSpecialFolder^(2^) ^& "\task.xml",True,True^)
    The script now works in any language path name. Thank you for the pointers. Your input is much appreciated.
      My ComputerSystem Spec

  3.    #323

    Good work, you guys. Glad to see you're still struggling along Gary ( @pf100).
    --Ed--
      My ComputersSystem Spec


  4. Posts : 1,361
    Windows 10 Home x64 and Pro x86
       #324

    @pf100

    I've been studying the WUMTWrapperScript.

    I notice that you have a section ::Determine if running 32 or 64 bit Windows OS and set variables accordingly
    - but what you then seem to check is the CPU architecture not the Type of the OS itself
    - whereas you could use something like If Defined ProgramFiles(x86) (Set OSType=x64) Else (Set OSType=x86) to achieve the stated aim because that system variable only exists on 64-bit Windows.
    Or am I missing the point of that part of the script?

    What I am doing is not as ambitious as your scheme.
    - I already routinely set my connections as metered [manual procedure] & I inhibit USOClient [batch file]
    - I also already have a startup batch file [well, logon, actually - because it needs Admin access] that checks that the connections & USOClient remain as intended
    So I am working my way through each of your identified update hijackers to add them to both my inhibiting batch file and my checking batch file. I have been getting away with just using my existing precautions so far so my other jobs are currently higher priority but I am very grateful for the work you have done in identifying these other villains.

    Yours,
    Denis
      My ComputerSystem Spec

  5.    #325

    Matthew Wai said: View Post
    @ Pedro147
    Next time when my VBScript has found an update which is not shown on Windows Update MiniTool, you can either exclude the update by the method described in my post #302 or install it after downloading it from Microsoft Update Catalog (enter the update title on the search bar).
    Thanks @Matthew Wai will do. Sorry I didn't get a notification for this post.
      My ComputerSystem Spec

  6.    #326

    Try3 said: View Post
    - I also already have a startup batch file [well, logon, actually - because it needs Admin access]
    Do you know a batch file can automatically get administrative privileges?

    Pedro147 said: View Post
    didn't get a notification for this post.
    It seems to have happened to some members.
      My ComputerSystem Spec


  7. Posts : 1,361
    Windows 10 Home x64 and Pro x86
       #327

    Matthew Wai said: View Post
    Do you know a batch file can automatically get administrative privileges?
    Yes, the batch file runs from TS at logon using Admin privileges without any intervention being needed on my part.

    Denis
      My ComputerSystem Spec

  8.    #328

    The administrator has added a new option to completely disable Windows Update.
    Enable or Disable Windows Update Automatic Updates in Windows 10 | Tutorials
      My ComputerSystem Spec

  9.    #329

    Try3 said: View Post
    @pf100
    I've been studying the WUMTWrapperScript.
    I notice that you have a section ::Determine if running 32 or 64 bit Windows OS and set variables accordingly
    - but what you then seem to check is the CPU architecture not the Type of the OS itself
    - whereas you could use something like If Defined ProgramFiles(x86) (Set OSType=x64) Else (Set OSType=x86) to achieve the stated aim because that system variable only exists on 64-bit Windows.
    Or am I missing the point of that part of the script?
    I'm checking the architecture of the OS.
    I decided early on to not check for "Program Files (x86)" because some programs are hard-coded to install in that folder and will create it if it doesn't exist even on a 32 bit OS and so is not a reliable way to check the OS's architecture.
    If you want to find the architecture of the OS:
    Vista and newer:
    wmic os get osarchitecture
    Xp and newer:
    wmic cpu get AddressWidth (this is how I check)
    If you want to find the architecture of the processor itself:
    wmic cpu get DataWidth
    Source.
      My ComputerSystem Spec


  10. Posts : 1,361
    Windows 10 Home x64 and Pro x86
       #330

    pf100 said: View Post
    wmic cpu get AddressWidth (this is how I check)
    Thanks for replying. I was thrown by the syntax into thinking that this only checked the CPU not the OS.

    [By the way, my suggestion If Defined ProgramFiles(x86) (Set OSType=x64) Else (Set OSType=x86) checks the existence of the system variable not a folder.]

    All the best,
    Denis
      My ComputerSystem Spec


 
Page 33 of 34 FirstFirst ... 2331323334 LastLast

Related Threads
Win 10 Pro machine off for a few days. I have delayed the Fall update for 365 days as of 12/17 though I will eventually get around to installing it. I believe I know that the Meltdown/ Spectre update is non negotiable. With win 7 it was easy to...
How to stop windows 10 updates in Windows Updates and Activation
How can I stop windows 10 updates? I put in metered for 1 week. In one week will it give me a chance to stall again or will it automaticly update (What I do not want). Don Cole
How can I completely stop Windows Defender? in AntiVirus, Firewalls and System Security
I have Windows Defender shut off, but it seems to still want to run. I keep getting a pop up from my WinPatrol program that WD wants to run at startup. I click the reject button but it keeps coming back. I fear it could be interfering with Macrium...
Stop windows 10 updates? in Windows Updates and Activation
Hi there Apologies if this has already been asked, but is there an easy way to stop specific windows 10 updates. I have the latest Pro version of windows 10 and generally usually don't mind the updates being downloaded automatically. I know...
Solved Completely Stop Windows Defender in AntiVirus, Firewalls and System Security
Just checking here. The only way to disable Windows defender is through: & Anything else I can do to ensure it stays off or turns off other things that these two do not cover?
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:49.
Find Us