Stop Windows 10 Updates Properly and Completely

Page 33 of 37 FirstFirst ... 233132333435 ... LastLast

  1. Posts : 98
    Windows 10
       #321

    Matthew Wai said:
    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 Computer


  2. Posts : 98
    Windows 10
       #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 Computer


  3. Posts : 4,224
    Windows 10
    Thread Starter
       #323

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


  4. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #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 Computer


  5. Posts : 38
    WinDoze 10 Home
       #325

    Matthew Wai said:
    @ 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 Computer


  6. Posts : 7,606
    Windows 10 Home 20H2
       #326

    Try3 said:
    - 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:
    didn't get a notification for this post.
    It seems to have happened to some members.
      My Computer


  7. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #327

    Matthew Wai said:
    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 Computer


  8. Posts : 7,606
    Windows 10 Home 20H2
       #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 Computer


  9. Posts : 98
    Windows 10
       #329

    Try3 said:
    @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 Computer


  10. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #330

    pf100 said:
    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 Computer


 

  Related Discussions
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 18:27.
Find Us




Windows 10 Forums