Server Core 2012 上的 Windows 更新

cod*_*fun 6 windows-update windows-server-core windows-server-2012

我已经搜索了一段时间,但还没有找到关于 Windows 更新如何与 Server Core 2012 一起工作的问题的答案。我有几个域控制器,我刚刚上线并决定将它们更改为服务器核心。我发现的两件事是使用sconfig但在使用时收到以下错误消息

?Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Inspecting system...


===============================================================================
                         Server Configuration
===============================================================================

1) Domain/Workgroup:                    Domain:  mydomain
2) Computer Name:                       mydc
3) Add Local Administrator
4) Configure Remote Management          Enabled

5) Windows Update Settings:             Automatic
6) Download and Install Updates
7) Remote Desktop:                      Disabled

8) Network Settings
9) Date and Time
10) Help improve the product with CEIP  Not participating
11) Windows Activation

12) Log Off User
13) Restart Server
C:\Windows\System32\en-US\sconfig.vbs(326, 1) Microsoft VBScript runtime error: Input past end of file
14) Shut Down Server
15) Exit to Command Line

Enter number to select an option:
Run Code Online (Sandbox Code Playgroud)

我还发现了一些说要使用 Cscript 的链接,但是当我运行它时也出现错误。例如:

[mydc]: PS C:\Users\JohnDoe\Documents> Cscript scregedit.wsf /AU /v
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "C:\Users\JohnDoe\Documents\scregedit.wsf".
Run Code Online (Sandbox Code Playgroud)

那么我如何确保自动更新正常工作?有什么办法手动更新?

Pet*_*orf 5

我不知道为什么 sconfig 在你的服务器上有这个错误。

scregedit.wsf 位于 system32:

cd c:\windows\system32
Cscript scregedit.wsf /AU /v 4
Run Code Online (Sandbox Code Playgroud)

将打开自动更新。

也可以直接修改注册表,键在:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update

有一个名为“AUOptions”的 DWORD 值

值为 1 会关闭更新,值为 4 会自动下载并安装它们。值 2 和 3 通过 Core 中不存在的任务栏通知区域通知用户,所以不要使用这些。

我手动安装更新,因为我需要能够决定何时重新启动。

有各种第三方工具,例如“核心配置器”,可让您手动执行更新。

我目前正在使用:' WUA_SearchDownloadInstall.vbs ',来自微软的一个小脚本