部署用于 Service Manager 的自助服务门户Deploy the Self-Service portal for Service Manager

自助服务门户为最终用户提供对 System Center Service Manager 功能的基于 web 的访问。The Self-Service portal provides web-based access to the features of System Center - Service Manager for end users. 本文介绍如何部署自助服务门户并对其进行自定义。This article describes how you can deploy the Self-Service portal and customize it.

Supported operating systemsSupported operating systems

  • Windows Server 2016Windows Server 2016
  • Windows Server 2012 R2Windows Server 2012 R2

支持的 Web 浏览器Supported web browsers

自助服务门户需要上述的屏幕分辨率为 1024 X 768。The Self Service portal needs a screen resolution above 1024 X 768. 在以下浏览器中受支持。It is supported on the following browsers.

  • Microsoft EdgeMicrosoft Edge

  • Microsoft Internet Explorer 10 和 11Microsoft Internet Explorer 10 and 11

  • Mozilla Firefox 42 及更高版本Mozilla Firefox 42 and later

  • Google Chrome 46 及更高版本Google Chrome 46 and later

设置自助服务门户Set up the Self Service portal

你将使用以下各部分设置自助服务门户。You'll use the following sections to set up the Self Service portal.

设置 Web 服务器Set up the web server

将 Windows server 计算机加入到运行 Service Manager SDK 服务的同一个域。Join the Windows server machine to the same domain where the Service Manager SDK Service is running. 理想情况下,在辅助服务器上。Ideally, on the secondary server. 使用以下步骤可在服务器上启用 IIS 角色和 ASP.NET 4.5。Enable the IIS role and ASP.NET 4.5 on the server using following steps.

  1. 启动“添加角色和功能向导”,然后启用 IIS。Start the Add Roles and Features Wizard and then enable IIS.


  2. 启用 .NET 功能。Enable the .NET features.

    1. 启用 .NET 3.5Enable .NET 3.5


    2. 启用 HTTP 激活Enable HTTP Activation

      选择 HTTP 激活

    3. 启用 ASP.NET 4.5Enable ASP.NET 4.5

      选择 ASP.NET 4。5

  3. 在 Web 服务器角色 (IIS) 页面上启用以下角色服务。Enable the following role services on the Web Server Role (IIS) page.

    1. 基本身份验证Windows 身份验证Basic Authentication and Windows Authentication

      基本身份验证和 Windows 身份验证

    2. 添加“应用程序开发” ,然后在其下添加“.NET Extensibility 4.5”、“ASP”和“ASP.NET 4.5”。Add Application Development and under it, add .NET Extensibility 4.5, ASP, and ASP.NET 4.5.


使用安装程序安装自助服务门户 WebappInstall the Self Service Portal Webapp using Setup

按照以下步骤可使用安装程序安装自助服务门户 WebApp。Use the following steps to install the Self Service Portal WebApp using Setup.

  1. 在 Service Manager 2016 安装向导中单击Service Manager 自助服务门户Click on Service Manager Self Service Portal in Service Manager 2016 setup wizard.

  2. 通读 EULA 并接受它。Go through the EULA and accept it.


  3. 选择安装位置。Choose your installation location.


  4. 查看系统检查结果。Review the System check results.

  5. 配置自助服务门户服务器,为服务器键入配置详细信息。Configure the Self Service Portal server and type configuration details for your server.

    • 网络名称 :要在 IIS 管理控制台中显示的网站的名称。WebSite Name : The name of the website to display in the IIS Management console.

    • SM 服务器名称:可以提供完全限定的域名或运行 Service Manager SDK 服务的服务器的 NetBIOS 名称。SM Server name: You can provide a fully-qualified domain name or the NetBIOS name of the server running the Service Manager SDK service. 我们建议使用专用的辅助 Service Manager 管理服务器与门户进行通信。We recommend that you use a dedicated secondary Service Manager management server to communicate with the portal.

    • 门户端口:网站将使用的端口号。Portal Port: The port number that the website will use.

    • SSL 证书 :(可选)用于在安全模式 (https://) 下配置网站的 SSL 证书。SSL Certificate: (Optional) The SSL certificate to configure the website in secure mode (https://). 如果使用基本身份验证,则建议这样设置。This is the recommended setting if you are using Basic Authentication. 默认设置是 Windows 身份验证。The default is Windows Authentication.


  6. 为自助服务门户配置帐户。Configure the account for the Self Service Portal. 这是用于运行 IIS 实例的帐户。This is the account that the IIS instance will run under. 此帐户应具有 Service Manger 管理员角色。This account should have the Service Manger Admin role.


  7. 诊断和使用数据通知信息会显示,从而告知你数据会在默认情况下发送给 Microsoft。The Diagnostic and usage data notification information is displayed, informing you that data is sent to Microsoft by default. 可以在 Service Manager 控制台中更改此设置。You can change this setting in the Service Manager console. 单击“下一步”。Click Next.


  8. 选择是否要自动安装 Microsoft 更新。Choose whether to automatically install Microsoft updates.

    Microsoft 更新

  9. 等待安装完成。Wait for installation to complete.


使用命令行安装自助服务门户 webappInstall the Self Service portal webapp using the command line

您可以修改以下示例以安装自助服务门户。You can modify the following example to install the Self Service portal.

SetupWizard.exe /Install:SelfServicePortal /silent /accepteula /CustomerExperienceImprovementProgram:No /EnableErrorReporting:No /PortalWebSiteName:<Portal Name> /SMServerName:<SDK Server Name> /PortalWebSitePort:<PortNumber> /PortalAccount:<domain>\<user>\<pwd>

完成安装Complete the installation

按照以下步骤可完成安装。Use the following step to complete your installation.

  • 重新启动 IIS。Restart IIS. 你可以在浏览器中访问 Web 应用( http://yourwebsite:port) 。You can access the Web App (http://yourwebsite:port) in your browser. 它类似于下图。It will resemble the following image.


自定义自助服务门户Customize the Self Service portal

以下部分介绍了如何自定义自助服务门户以适合你的组织。The following section describes how you can customize the Self Service portal to suit your organization.

安装 Service Manager 2016 更新汇总2之前,请注意,所有自定义项都在门户边栏(CustomSidebar)中进行,然后使用以下步骤开始操作。Before you install Service Manager 2016 Update Rollup 2, note that all customizations are made in the portal sidebar (CustomSidebar.cshtml), then use the following steps to get started.

  1. 在 <自助服务门户安装路径>\inetpub\wwwroot\SelfServicePortal\Views\Shared 文件夹路径中创建一个名为 CustomSidebar 的新的 cshtml 文件。Create a new cshtml file named CustomSidebar.cshtml in the <Self Service Portal install path>\inetpub\wwwroot\SelfServicePortal\Views\Shared folder path.
  2. 将自定义项从边栏中移到新文件,该文件为 CustomSidebar。Move your customizations from sidebar.cshtml to the new file, which is CustomSidebar.cshtml.

将来,需要在 CustomSidebar 文件中对 Service Manager 2016 自助服务门户的边栏进行所有自定义。In the future, you need to make all customizations to the Service Manager 2016 Self Service portal’s sidebar in the CustomSidebar.cshtml file.

基本自定义Basic customization

Web.config 文件中的 "<appSettings>" 选项卡提供了一些标准设置,可轻松自定义和个性化最常修改的区域。The <appSettings> tab in the Web.config file offers some standard settings to easily customize and personalize the areas which are most often modified. 下面是其中的列表。Here's a list of them.

Key 目的Purpose
CompanyNameCompanyName 此项的值在门户中显示为公司的名称。The value of this key appears as the company's name inside the portal.
CompanyLogoLocationCompanyLogoLocation 此键的值用作图像文件,该文件在门户中显示为公司的徽标。The value of this key is used as the image file, which is displayed as the company's logo inside the portal.
ITPhoneITPhone 此密钥采用值来配置 IT 技术支持的电话号码。This key takes the value to configure the IT help desk's phone number. 此信息会显示在导航菜单底部。This information appears at the bottom of the navigation menu.
ITEmailITEmail 此键的值用于配置 IT 技术支持的电子邮件 ID。The value of this key is used configure the IT help desk's email ID. 此信息会显示在导航菜单底部。This information appears at the bottom of the navigation menu.
DefaultLanguageDefaultLanguage 默认情况下,门户网页按照浏览器语言的定义进行加载。By default, the Portal web pages are loaded as defined by the browser's language. 随后当前用户可以在每个页面的右上角手动选择语言。Then current user can manually select the language in the top-right corner of each page.
此键的值定义门户在浏览器语言不可用时所选择的默认故障转移语言。The value of this key defines the default failover language which is chosen by the portal, when the browser's language is not available.
GenericOfferingGenericOffering 此键的值接受映射到一般请求按钮的请求产品的名称。The value of this key accepts the name of the request offering which is mapped to the generic request button. 当用户在目录中找不到相应的请求产品时,用户将使用此一般请求按钮。This generic request button is used by the user, when they can't find an appropriate request offering in the catalog.
SDKServerNameSDKServerName 此键的值定义在其中运行 Service Manager SDK 的服务器的名称,它用于与其他 Service Manager 服务器进行交互。The value of this key defines the name of the server where the Service Manager SDK runs and it is used to interact with other Service Manager servers. 默认情况下,它具有你在安装程序中提供的相同值。By default, it has the same value that you provided in Setup.
可以使用完全限定的域名或运行 Service Manager SDK 服务的服务器的 NetBIOS 名称。You can use the fully qualified domain name or the NetBIOS name of the server running the Service Manger SDK service. 我们建议使用专用的辅助 Service Manager 管理服务器与门户进行通信。We recommend that you dedicate a secondary Service Manager management server to communicate with the portal.
MaxQueryResultsMaxQueryResults 此键的值定义请求产品表单中任何查询表单元素返回的最大结果数量。The value of this key defines the maximum number of results that are returned by any query form element inside your request offering forms.
UserCacheTimeoutUserCacheTimeout 门户使用缓存基础结构提供反应迅速的用户体验。The Portal uses a caching infrastructure to provide a swift user experience. 此键的值定义超时(以秒为单位),以缓存已登录用户的特定于用户的详细信息。The value of this key defines the timeout, in seconds, to cache user-specific details of the signed-in user.
DataCacheTimeoutDataCacheTimeout 门户使用缓存基础结构提供反应迅速的用户体验。The Portal uses a caching infrastructure to provide a swift user experience. 此键的值定义超时值(以秒为单位),以缓存可以在不同用户之间共享的一般数据。The value of this key defines the timeout, in seconds, to cache generic data which can be shared among different users.
EnableTelemetryEnableTelemetry 此键的值定义有关参与 Microsoft 客户体验改善计划的选择。The value of this key defines your selection about participating in Microsoft's Customer Experience Improvement Program. 将此密钥标记为True时,门户会向 Microsoft 发送使用情况遥测数据。Your portal sends usage telemetry data to Microsoft when this key is marked as True. 默认情况下,它具有你在安装过程中选择的相同值。By default, it has the same value that you chose during Setup.


对 Web.config 文件进行任何更改之后,必须重新启动 IIS 服务。You must restart the IIS service after you make any changes to the Web.config file.

样式自定义Style customization

通过在 \Content\css 网站文件夹中添加 Custom.css 文件,可自定义网页样式(如字体、颜色和背景)。Web page style, such as font, color, and background, is customized by adding the Custom.css file in the \Content\css website folder.

CSS 文件中定义的样式会替代自助服务门户的默认样式。Styles defined in the CSS file overrides the default styles of the Self Service Portal..

自定义左侧菜单栏Customizing the left menu bar

可以通过编辑位于网站文件夹内的 \Views\Shared 中的 Sidebar.cshtml 文件,来修改在左侧导航栏(菜单)中显示的内容。You can modify the content shown in the left navigation bar (menu) by editing the Sidebar.cshtml file which is in the \Views\Shared inside the website folder.

例如:For example:


可以对该菜单添加或移除快捷方式,并且可以使用 CSS 类、键盘热键和其他内容的详细信息来自定义它们。You can add or remove shortcuts from the menu, and you can customize them with details for the CSS class, keyboard hotkeys, and others.

其他 UI 自定义Additional UI customization

有关 UI 自定义的详细信息,请参阅官方 System Center Service Manager 博客For more information about UI customization, see The Official System Center Service Manager Blog.

后续步骤Next steps