Help with a .bat file.

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 773
    Windows 10 Home x64 - Version 21H2 (OS Build 19044.2006)
    Thread Starter
       #11

    cereberus said:
    Powershell is really great for handling updates.
    Can it be automated with a one click command?

    TairikuOkami said:
    The command for checking out updates works in my bat, so it has to blocked by something on your PC.
    Could you post what your .bat file looks like please?
      My Computer


  2. Posts : 5,452
    Windows 11 Home
       #12

    EyeInTheSky said:
    Could you post what your .bat file looks like please?
    [Batch] Windows Setup 1 - Pastebin.com

    Even if I copy it to CMD, it works and I have scripting disabled, powershell removed.
      My Computer


  3. Posts : 773
    Windows 10 Home x64 - Version 21H2 (OS Build 19044.2006)
    Thread Starter
       #13

    TairikuOkami said:
    [Batch] Windows Setup 1 - Pastebin.com

    Even if I copy it to CMD, it works and I have scripting disabled, powershell removed.
    Thanks!

    I'll have to find out what is blocking it on my computer. I checked a couple of things such as Reliability History and Event Viewer.

    So far, nothing is showing up as being blocked or prematurely shutting down.
      My Computer


  4. Posts : 15,485
    Windows10
       #14

    EyeInTheSky said:
    Can it be automated with a one click command?
    Don't know but @Kari can probably advise?
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
       #15

    cereberus said:
    Don't know but @Kari can probably advise?
    I have no issues with shortcut with following command, works perfectly every time:

    %windir%\explorer.exe ms-settings:windowsupdate-action

    Exactly as told in tutorial: Create Check for updates in Windows Update shortcut in Windows 10 | Windows 10 Tutorials

    Kari
      My Computer


  6. Posts : 773
    Windows 10 Home x64 - Version 21H2 (OS Build 19044.2006)
    Thread Starter
       #16

    Kari said:
    I have no issues with shortcut with following command, works perfectly every time:

    %windir%\explorer.exe ms-settings:windowsupdate-action

    Exactly as told in tutorial: Create Check for updates in Windows Update shortcut in Windows 10 | Windows 10 Tutorials

    Kari
    That command does bring up the Windows Update interface; but again, as a .bat file, it does not auto click the "Check for updates" button - well, for me it doesn't at this point until I figure out why.

    Help with a .bat file.-.bat.png

    Every combination of .bat file I have ran, just brings up the Windows Update interface but absolutely will not initiate the Check for updates function in the same .bat file.

    There has to be a .bat file command that triggers the "Check for updates" radio button.
    Last edited by EyeInTheSky; 30 Oct 2018 at 08:27.
      My Computer


  7. Posts : 17,661
    Windows 10 Pro
       #17

    EyeInTheSky said:
    There has to be a .bat file command that triggers the "Check for updates" radio button.
    As I mentioned, I have never had any issues with the shortcut method. Works absolutely every time.

    I tested now the batch file method, it also works every time although I admit I tested it now only a few times, restarted and tested again a few times.

    Kari
      My Computer


  8. Posts : 773
    Windows 10 Home x64 - Version 21H2 (OS Build 19044.2006)
    Thread Starter
       #18

    Kari said:
    As I mentioned, I have never had any issues with the shortcut method. Works absolutely every time.

    I tested now the batch file method, it also works every time although I admit I tested it now only a few times, restarted and tested again a few times.

    Kari
    Could I please see your batch file exactly as it appears if typed in notepad and saved as a .bat file?

    I have to mention also, your shortcut method as outlined in the tutorial does open the Windows Update interface; but again, that method also fails to click the check for updates button as well.
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
       #19

    EyeInTheSky said:
    Could I please see your batch file exactly as it appears if typed in notepad and saved as a .bat file?
    Strange request, as to do what you want to only requires one command and that command has been told several times in this thread.

    Anyway, here is my Update.bat:

    Help with a .bat file.-image.png

    Kari
      My Computer


  10. Posts : 773
    Windows 10 Home x64 - Version 21H2 (OS Build 19044.2006)
    Thread Starter
       #20

    Kari said:
    Strange request, as to do what you want to only requires one command and that command has been told several times in this thread.

    Anyway, here is my Update.bat:

    Help with a .bat file.-image.png

    Kari
    I apparently had this:

    %windir%/explorer.exe ms-settings:windowsupdate-action

    When I should've had this:

    %windir%\explorer.exe ms-settings:windowsupdate-action

    However, it still made no difference and I have no idea why at this point.

    If you look carefully back through the thread, you will see that my request was not strange at all because I caught a syntax error in my file; but as I mentioned, no results yet.
      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 01:05.
Find Us




Windows 10 Forums