請選擇 進入手機版 | 繼續訪問電腦版

微剋多資訊

 找回密碼
 註冊

Sign in with google

Google帳號登入

搜索
回覆 2則 瀏覽 15732篇
Line

[求助] Windows 10 如何先自動進行更新再關機...

該用戶從未簽到

升級   60.2%

發表於 2019-1-9 10:44 | 顯示全部樓層 |閱讀模式
本帖最後由 nscwel 於 2019-1-9 10:46 編輯

請教神人
目前有個問題是
因為目前公司很多台電腦
設定排程自動下SHUTDOWN指令關機
但這樣無法在有新的更新出現時進行關機
需再開機後,手動更新

想請問各位前輩
1.可否在工作背景中默默進行更新?
2.是否有程式可下關機指令時,先檢查若有新的更新,則先進行更新後再接著關機呢?

PS:
在WINDOWS 10下
我目前是試用過 ShutdownWithUpdates.exe 這程式
查看更新中有出現新的更新,也出現更新擱置中

但使用
ShutdownWithUpdates /hs
只會進行關機的動作
無法進行更新後關機
樓主熱門主題

簽到天數: 9

該用戶今日未簽到

升級   100%

發表於 2019-1-9 16:12 | 顯示全部樓層
我是這沒需要也沒用過,但有找到 upgrade windows and shutdown
文中指令如下,參數明顯和你的不同,不知是否只是參數問題:
start \\[server]\[share]\"ShutdownWithUpdates.exe" /R /F



使用道具

該用戶從未簽到

升級   60.2%

 樓主| 發表於 2019-1-10 08:42 | 顯示全部樓層
foster 發表於 2019-1-9 16:12
我是這沒需要也沒用過,但有找到 upgrade windows and shutdown
文中指令如下,參數明顯和你的不同,不知是 ...

謝謝版主!!
根據ShutdownWithUpdates.exe提供參數介紹是這樣的

Usage: ShutdownWithUpdates [/s | /r | /hs | /g | /a | /?] [/f] [/v] [/nu]
        [/m \\computer] [/t x] [/c "msg"] [/d [p|u:]xx:yy]

  /s    Install updates & shut down computer.
         (Updates must be already downloaded on computer being shut down.)
  /r    Install updates & reboot computer.
         (Updates must be already downloaded on computer being rebooted.)
  /hs   Install updates & initiate hybrid shut-down of computer. (Windows 8,10)
         (Updates must be already downloaded on computer being shut down.)
  /g    Install updates & reboot computer & restart registered applications.
         (Updates must be already downloaded on computer being rebooted.)
  /abo  Go to advanced boot options menu. (Windows 8,10)
         (Pre-Windows 10: Updates will not be installed.)
  /a    Abort previous shut-down/rebooting.
         (Can be used only during previous time-out period.)
  /?    Show command line help.
  /f    Use forced action.
         WARNING: May result in the loss of unsaved data on target computer!
  /v    Show user confirmation before proceeding.
         (Local computer only. It is shown before time-out is initiated.)
  /nu   Not to install updates.
         (Windows 10: This option is not supported.)
  /m \\computer    Specify target/remote computer.
  /t x  Set time-out before performing action to x seconds.
         (Valid range is 0-315360000, or 10 yrs, with a default of 0.)
  /c "msg"      Message to be displayed in the interactive shutdown dialog box.
                 (Maximum of 512 characters is allowed.)
  /d [p|u:]xx:yy  Reason for shut-down or rebooting (used for logging):
                   p if action was planned.
                   u if action was user-defined.
                   (If neither p or u is used, assumes unplanned.)
                   xx = major reason number (less than 65536.)
                   yy = minor reason number (greater than 65536.)
                        (Reason numbers can be decimal or hex if begin with 0x)

目前仍嘗試其他的方式跟不同的參數設定中....
若有進展
再進一步回報!!!

使用道具

您需要登入後才可以回帖 登入 | 註冊

本版積分規則

小黑屋|Archiver|微剋多資訊(MicroDuo)

GMT+8, 2024-3-28 18:42

Discuz! X

© 2009-2023 Microduo

快速回覆 返回頂部 返回列表