Configuration Manager 的先决条件检查程序Prerequisite Checker for Configuration Manager

适用范围: Configuration Manager (Current Branch)Applies to: Configuration Manager (current branch)

在运行安装程序安装或升级 Configuration Manager 站点之前,或在新的服务器上安装站点系统角色之前,可从想要用于验证服务器是否已准备就绪的 Configuration Manager 版本,使用此独立应用程序 (Prereqchk.exe) 。Before you run Setup to install or upgrade a Configuration Manager site, or before you install a site system role on a new server, you can use this stand-alone application (Prereqchk.exe) from the version of Configuration Manager that you want use to verify server readiness. 使用先决条件检查程序识别并修复会阻止安装站点或站点系统角色的问题。Use Prerequisite Checker to identify and fix problems that would block a site or site system role installation.

备注

先决条件检查程序始终作为安装程序的一部分运行。Prerequisite Checker always runs as part of Setup.

情况下,运行先决条件检查程序时:By default, when Prerequisite Checker runs:

  • 会对运行它的服务器进行验证。It validates the server where it runs.
  • 扫描本地计算机查找现有站点服务器,且仅运行适用于站点的检查。The local computer is scanned for an existing site server, and only the checks that are applicable to the site are run.
  • 如果未检测到现有站点,则会运行所有先决条件规则。If no existing sites are detected, all prerequisite rules are run.
  • 它检查规则以验证安装程序所需的软件和设置是否已安装。It checks rules to verify that software and settings required for setup are installed. 必备软件可能需要未经先决条件检查程序验证的其他配置或软件更新。It's possible that required software will require additional configuration or software updates that are not verified by Prerequisite Checker.
  • 它会在计算机系统驱动器的 ConfigMgrPrereq.log 文件中记录其结果。It logs its results in the ConfigMgrPrereq.log file on the system drive of the computer. 日志文件可能包含应用程序界面中未显示的其他信息。The log file might contain additional information that doesn't appear in the application interface.

在命令提示符处运行先决条件检查程序并指定具体的命令行选项:When you run Prerequisite Checker at a command prompt and specify specific command-line options:

  • 先决条件检查程序仅执行与命令行中指定的站点服务器或站点系统关联的检查。Prerequisite Checker performs only the checks that are associated with the site server or site systems that you specify in the command line.
  • 若要检查远程计算机,用户帐户必须具有远程计算机的管理员权限。To check a remote computer, your user account must have Administrator rights to the remote computer.

若要深入了解先决条件检查程序所执行的检查,请参阅 Configuration Manager 的先决条件检查列表For more information about the checks that Prerequisite Checker performs, see List of prerequisite checks for Configuration Manager.

将先决条件检查程序文件复制到另一台计算机Copy Prerequisite Checker files to another computer

  1. 在 Windows 资源管理器中,转到以下位置之一:In Windows Explorer, go to one of the following locations:

    • <Configuration Manager 安装介质>\SMSSETUP\BIN\X64<Configuration Manager installation media>\SMSSETUP\BIN\X64
    • <Configuration Manager 安装路径>\BIN\X64<Configuration Manager installation path>\BIN\X64
  2. 将以下文件复制到另一台计算机上的目标文件夹:Copy the following files to the destination folder on the other computer:

    • prereqchk.exeprereqchk.exe
    • prereqcore.dllprereqcore.dll
    • prereqchkres.dllprereqchkres.dll
      • 此文件位于安装语言的子文件夹。This file is in the subfolder for the install language. 例如,英语位于 00000409 子文件夹。For instance, English is in the 00000409 subfolder.
    • basesql.dllbasesql.dll
    • basesvr.dllbasesvr.dll
    • baseutil.dllbaseutil.dll

运行先决条件检查程序进行默认检查Run Prerequisite Checker with default checks

  1. 在 Windows 资源管理器中,转到以下位置之一:In Windows Explorer, go to one of the following locations:

    • <Configuration Manager 安装介质>\SMSSETUP\BIN\X64<Configuration Manager installation media>\SMSSETUP\BIN\X64
    • <Configuration Manager 安装路径>\BIN\X64<Configuration Manager installation path>\BIN\X64
  2. 运行 prereqchk.exe 以启动先决条件检查程序。Run prereqchk.exe to start Prerequisite Checker.
    先决条件检查程序将检测现有站点,如果找到,则执行针对升级准备情况的检查。Prerequisite Checker detects existing sites, and if found, performs checks for upgrade readiness. 如果未找到站点,则执行所有检查。If no sites are found, all checks are performed. “站点类型” 列提供有关规则与之关联的站点服务器或站点系统的信息。The Site Type column provides information about the site server or site system with which the rule is associated.

针对所有默认检查,从命令提示符运行先决条件检查程序Run Prerequisite Checker from a command prompt for all default checks

  1. 打开命令提示符窗口并将目录更改为以下位置之一:Open a Command Prompt window and change directories to one of the following locations:

    • <Configuration Manager 安装介质>\SMSSETUP\BIN\X64<Configuration Manager installation media>\SMSSETUP\BIN\X64
    • <Configuration Manager 安装路径>\BIN\X64<Configuration Manager installation path>\BIN\X64
  2. 输入 prereqchk.exe /LOCAL 以启动先决条件检查程序,并在服务器上运行所有先决条件检查。Enter prereqchk.exe /LOCAL to start Prerequisite Checker and run all prerequisite checks on the server.

从命令提示符运行先决条件检查程序以使用各选项Run Prerequisite Checker from a command prompt to use options

  1. 打开命令提示符窗口并将目录更改为以下位置之一:Open a Command Prompt window and change directories to one of the following locations:

    • <Configuration Manager 安装介质>\SMSSETUP\BIN\X64<Configuration Manager installation media>\SMSSETUP\BIN\X64
    • <Configuration Manager 安装路径>\BIN\X64<Configuration Manager installation path>\BIN\X64
  2. 输入 prereqchk.exe,并在后面添加以下一个或多个命令行选项。Enter prereqchk.exe with the addition of one or more of the following command-line options.

    例如,可使用以下方法检查主站点:For example, to check a primary site, you might use the following:

    prereqchk.exe [/NOUI] /PRI /SQL <FQDN of SQL Server> /SDK <FQDN of SMS Provider> [/JOIN <FQDN of central administration site>] [/MP <FQDN of management point>] [/DP <FQDN of distribution point>]prereqchk.exe [/NOUI] /PRI /SQL <FQDN of SQL Server> /SDK <FQDN of SMS Provider> [/JOIN <FQDN of central administration site>] [/MP <FQDN of management point>] [/DP <FQDN of distribution point>]

    管理中心站点服务器:Central administration site server:

    • /NOUI/NOUI

      不需要。Not required. 启动先决条件检查程序而不显示用户界面。Starts Prerequisite Checker without displaying the user interface. 你必须在命令行中的任何其他选项之前指定此选项。You must specify this option before any other option in the command line.

    • /CAS/CAS

      必需。Required. 验证本地计算机是否满足管理中心站点的要求。Verifies that the local computer meets the requirements for the central administration site.

    • /SQL <SQL Server 的 FQDN>/SQL <FQDN of SQL Server>

      必需。Required. 使用完全限定的域名 (FQDN),验证指定计算机是否满足用于托管 Configuration Manager 站点数据库的 SQL Server 的要求。Using the fully qualified domain name (FQDN), verifies that the specified computer meets the requirements for SQL Server to host the Configuration Manager site database.

    • /SDK <SMS 提供程序的 FQDN>/SDK <FQDN of SMS Provider>

      必需。Required. 验证指定计算机是否满足 SMS 提供程序的要求。Verifies that the specified computer meets the requirements for the SMS Provider.

    • /Ssbport/Ssbport

      不需要。Not required. 验证防火墙例外是否生效以允许 SQL Server Service Broker (SSB) 端口上的通信。Verifies that a firewall exception is in effect to allow communication on the SQL Server Service Broker (SSB) port. 默认 SSB 端口为 4022。The default SSB port is 4022.

    • InstallDir <Configuration Manager 安装路径>InstallDir <Configuration Manager installation path>

      不需要。Not required. 验证站点安装的最小磁盘空间要求。Verifies the minimum disk space on requirements for site installation.

    主站点服务器:Primary site server:

    • /NOUI/NOUI

      不需要。Not required. 启动先决条件检查程序而不显示用户界面。Starts Prerequisite Checker without displaying the user interface. 你必须在命令行中的任何其他选项之前指定此选项。You must specify this option before any other option in the command line.

    • /PRI/PRI

      必需。Required. 验证本地计算机是否满足主站点的要求。Verifies that the local computer meets the requirements for the primary site.

    • /SQL <SQL Server 的 FQDN>/SQL <FQDN of SQL Server>

      必需。Required. 验证指定计算机是否满足用于托管 Configuration Manager 站点数据库的 SQL Server 的要求。Verifies that the specified computer meets the requirements for SQL Server to host the Configuration Manager site database.

    • /SDK <SMS 提供程序的 FQDN>/SDK <FQDN of SMS Provider>

      必需。Required. 验证指定计算机是否满足 SMS 提供程序的要求。Verifies that the specified computer meets the requirements for the SMS Provider.

    • /JOIN <管理中心站点的 FQDN>/JOIN <FQDN of central administration site>

      不需要。Not required. 验证本地计算机是否满足用于连接到管理中心站点服务器的要求。Verifies that the local computer meets the requirements for connecting to the central administration site server.

    • /MP <管理点的 FQDN>/MP <FQDN of management point>

      不需要。Not required. 验证指定计算机是否满足管理点站点系统角色的要求。Verifies that the specified computer meets the requirements for the management point site system role. 只有当你使用 /PRI 选项时,才支持此选项。This option is only supported when you use the /PRI option.

    • /DP <分发点的 FQDN>/DP <FQDN of distribution point>

      不需要。Not required. 验证指定计算机是否满足分发点站点系统角色的要求。Verifies that the specified computer meets the requirements for the distribution point site system role. 只有当你使用 /PRI 选项时,才支持此选项。This option is only supported when you use the /PRI option.

    • /Ssbport/Ssbport

      不需要。Not required. 验证防火墙例外是否生效以允许 SSB 端口上的通信。Verifies that a firewall exception is in effect to allow communication on the SSB port. 默认 SSB 端口为 4022。The default SSB port is 4022.

    • InstallDir <Configuration Manager 安装路径>InstallDir <Configuration Manager installation path>

      不需要。Not required. 验证站点安装的最小磁盘空间要求。Verifies the minimum disk space on requirements for site installation.

    辅助站点服务器:Secondary site server:

    • /NOUI/NOUI

      不需要。Not required. 启动先决条件检查程序而不显示用户界面。Starts Prerequisite Checker without displaying the user interface. 你必须在命令行中的任何其他选项之前指定此选项。You must specify this option before any other option in the command line.

    • < /SEC 辅助站点服务器的 FQDN>/SEC <FQDN of secondary site server>

      必需。Required. 验证指定计算机是否满足辅助站点的要求。Verifies that the specified computer meets the requirements for the secondary site.

    • /INSTALLSQLEXPRESS/INSTALLSQLEXPRESS

      不需要。Not required. 验证是否可在指定计算机上安装 SQL Server Express。Verifies that SQL Server Express can be installed on the specified computer.

    • /Ssbport/Ssbport

      不需要。Not required. 验证防火墙例外是否生效以允许 SSB 端口的通信。Verifies that a firewall exception is in effect to allow communication for the SSB port. 默认 SSB 端口为 4022。The default SSB port is 4022.

    • /Sqlport/Sqlport

      不需要。Not required. 验证防火墙例外是否生效以允许 SQL Server 服务端口的通信,并且该端口未由 SQL Server 的另一个命名实例使用。Verifies that a firewall exception is in effect to allow communication for the SQL Server service port, and that the port is not in use by another named instance of SQL Server. 默认端口为 1433。The default port is 1433.

    • InstallDir <Configuration Manager 安装路径>InstallDir <Configuration Manager installation path>

      不需要。Not required. 验证站点安装的最小磁盘空间要求。Verifies the minimum disk space on requirements for site installation.

    • /SourceDir/SourceDir

      不需要。Not required. 验证辅助站点的计算机帐户是否可访问承载安装程序源文件的文件夹。Verifies that the computer account of the secondary site can access the folder that hosts the source files for Setup.

    Configuration Manager 控制台:Configuration Manager console:

    • /Adminui/Adminui

      必需。Required. 验证本地计算机是否满足 Configuration Manager 的安装要求。Verifies that the local computer meets the requirements for installing Configuration Manager.

  3. 在先决条件检查程序用户界面中,先决条件检查程序将在“先决条件结果” 部分中创建一个已发现问题的列表。In the Prerequisite Checker user interface, Prerequisite Checker creates a list of discovered problems in the Prerequisite result section.

    • 单击列表中的项目以了解有关如何解决问题的详细信息。Click an item in the list for details about how to resolve the problem.
    • 在安装站点服务器、站点系统或 Configuration Manager 控制台之前,必须解决列表中状态为“错误” 的所有项目。You must resolve all items in the list that have an Error status before you install the site server, site system, or the Configuration Manager console.
    • 也可打开系统驱动器根目录中的 ConfigMgrPrereq.log 文件,查看先决条件检查程序结果。You also can open the ConfigMgrPrereq.log file in the root of the system drive to review Prerequisite Checker results. 该日志文件可能包含先决条件检查程序用户界面中未显示的其他信息。The log file might contain additional information that is not displayed in the Prerequisite Checker user interface.