How to open Setting——>Windows Update——>Advanced Options through a program or batch processing script

涛 王 76 Reputation points
2022-03-10T07:45:18.12+00:00

I want to use program or batch script to open Windows Setting / Windows Update/ Advanced Options.

Any advice you can give me, I'd like to thank you very much.

Windows development | Windows API - Win32
0 comments No comments
{count} vote

Accepted answer
  1. Junjie Zhu - MSFT 21,646 Reputation points
    2022-03-10T08:14:59.617+00:00

    Hello,
    Welcome to Microsoft Q&A!

    You can refer to the official introduction here.
    -https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app#how-to-launch-the-settings-app
    -https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app#update-and-security

    //**c++ example**  
    bool result = co_await Windows::System::Launcher::LaunchUriAsync(Windows::Foundation::Uri(L"ms-settings:windowsupdate-options"));  
    

    ----------

    //**batch script**  
    @echo off  
    title batch script  
    start ms-settings:windowsupdate-options  
    

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2022-03-10T07:55:34.507+00:00

    Just launch the command :

    ms-settings:windowsupdate-options
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.