windows反馈中心服务器,Windows 管理中心入门

Windows 管理中心入门

02/15/2019

本文内容

适用于:Windows Admin Center、Windows Admin Center 预览版

Windows 10 上安装的 windows 管理中心

重要

你必须是本地管理员组的成员才能在 Windows 10 上使用 Windows 管理中心

选择客户端证书

首次在 Windows 10 上打开 Windows 管理中心时,请确保选择 Windows 管理中心客户端 证书 (否则,会收到 HTTP 403 错误,指出 "无法访问此页" ) 。

在 Microsoft Edge 中,当系统提示此对话框时:

单击 "更多选项"

48a9cf66bcede9e10cc7b34e723f9f01.png

选择标记为 Windows 管理中心客户端 的证书,然后单击 "确定"

02dc29654c79e4be6362aab37a648c42.png

请确保选择 "始终允许访问",然后单击 "允许"

d52e7dd1bf8244a8afcf8f49beaf04c0.png

连接到托管节点和群集

在您完成 Windows 管理中心的安装后,您可以从主概述页添加服务器或群集进行管理。

添加单个服务器或群集作为托管节点

单击“所有连接”下的“+ 添加”。

71669091c5ce409e1900f8aee9740160.png

选择添加服务器、群集、Windows 电脑或 Azure VM:

5f8db2faac9e7722942fde2f4470c24c.png

键入要管理的服务器或群集的名称,然后单击 " 提交"。 服务器或群集将添加到 "概述" 页上的 "连接" 列表中。

5667c5db0cf934d27ced0fce4470f346.png

--或--

大容量导入多台服务器

在 " 添加服务器连接 " 页上,选择 " 导入服务器 " 选项卡。

ea2414e0b853f2738f7eab70d1459181.png

单击 " 浏览 " 并选择一个文本文件,其中包含要添加的服务器的逗号或换行符的列表。

备注

通过 使用 PowerShell 导出连接 创建的 .csv 文件包含除服务器名称之外的其他信息,与此导入方法不兼容。

--或--

通过搜索来添加服务器 Active Directory

在 " 添加服务器连接 " 页上,选择 " 搜索 Active Directory " 选项卡。

4ec285fbbe2707219cf7069e46a13038.png

输入搜索条件,然后单击 " 搜索"。 支持 ( * ) 的通配符。

搜索完成后-选择一个或多个结果,可以选择添加标记,然后单击 " 添加"。

通过托管节点进行身份验证

Windows 管理中心支持通过多种机制对托管节点进行身份验证。 默认值为单一登录。

单一登录

您可以使用您当前的 Windows 凭据对托管节点进行身份验证。 这是默认设置,Windows 管理中心会在你添加服务器时尝试登录。

在部署为 Windows Server 上的服务的情况下进行的单一登录

如果在 Windows Server 上安装了 Windows 管理中心,则需要进行其他配置才能进行单一登录。 为委派配置环境

--或--

使用 " 管理身份 " 指定凭据

在 " 所有连接" 下,从列表中选择服务器,然后选择 " 管理 身份" 以指定将用于向托管节点进行身份验证的凭据:

b423d682f84dc0cec028a69d9c6ad3a0.png

如果 Windows 管理中心正在 Windows Server 上的服务模式下运行,但未配置 Kerberos 委托,则必须重新输入您的 Windows 凭据:

331f88829ae66ca4aa86475cd160b65c.png

你可以将凭据应用于所有连接,这将为该特定浏览器会话缓存这些凭据。 如果重新加载浏览器,则必须重新输入作为凭据的 管理 。

本地管理员密码解决方案 (LAPS)

如果你的环境使用 LAPS,并且在 WINDOWS 10 电脑上安装了 windows 管理中心,则可以使用 LAPS 凭据通过托管节点进行身份验证。 如果使用此方案,请提供反馈。

使用标记来组织连接

您可以使用标记在连接列表中标识和筛选相关服务器。 这样,你就可以在 "连接" 列表中查看服务器的子集。 如果有多个连接,此方法特别有用。

编辑标记

在 "所有连接" 列表中选择一个或多个服务器

在 "所有连接" 下,单击 "编辑标记"

295cbffd3f6e1833e8299af50e2e39d9.png

" 编辑连接标记 " 窗格允许您从所选连接中修改、添加或删除标记, () :

若要将新标记添加到所选连接 (s) ,请选择 " 添加标记 ",然后输入要使用的标记名称。

若要使用现有标记名称标记所选连接,请选中要应用的标记名称旁的复选框。

若要从所有选择的连接中删除标记,请取消选中要删除的标记旁边的复选框。

如果将标记应用于所选连接的子集,则复选框将显示为中间状态。 您可以单击复选框将其选中,并将标记应用于所有选定的连接,或再次单击以取消选中它并从所有选定连接中删除标记。

a79de7071ae9446193ba60a6a600ee6f.png

按标记筛选连接

向一个或多个服务器连接添加标记后,可以查看连接列表中的标记,并按标记筛选连接列表。

若要按标记进行筛选,请选择 "搜索" 框旁边的 "筛选器" 图标。

31ba0fd9380b745cdde59b6039aa9b38.png

您可以选择 "or"、"and" 或 "not" 来修改所选标记的筛选器行为。

803bbce86c927802f4cabd51a4b8b8a2.png

使用 PowerShell 通过标记导入或导出连接

# Load the module

Import-Module "$env:ProgramFiles\windows admin center\PowerShell\Modules\ConnectionTools"

# Available cmdlets: Export-Connection, Import-Connection

# Export connections (including tags) to a .csv file

Export-Connection "https://wac.contoso.com" -fileName "WAC-connections.csv"

# Import connections (including tags) from a .csv file

Import-Connection "https://wac.contoso.com" -fileName "WAC-connections.csv"

# Import connections (including tags) from .csv files, and remove any connections that are not explicitly in the imported file using the -prune switch parameter

Import-Connection "https://wac.contoso.com" -fileName "WAC-connections.csv" -prune

用于导入连接的 CSV 文件格式

CSV 文件的格式以四个标题("name","type","tags","groupId")开头,在随后的每个新行中列出一个连接。

name 是连接的 FQDN

type 是连接类型。 对于 Windows Admin Center 中包含的默认连接,我们将使用下述设置之一:

连接类型

连接字符串

Windows Server

msft.sme.connection-type.server

Windows 10 电脑

msft.sme.connection-type.windows-client

故障转移群集

msft.sme.connection-type.cluster

超融合群集

msft.sme.connection-type.hyper-converged-cluster

tags 以竖线分隔。

groupId 用于共享连接。 在此列中使用 global 值即可将其设置为共享连接。

备注

仅网关管理员可以修改共享连接 - 任何用户都可以使用 PowerShell 修改其个人的连接列表。

用于导入连接的 CSV 文件示例

"name","type","tags","groupId"

"myServer.contoso.com","msft.sme.connection-type.server","hyperv"

"myDesktop.contoso.com","msft.sme.connection-type.windows-client","hyperv"

"teamcluster.contoso.com","msft.sme.connection-type.cluster","legacyCluster|WS2016","global"

"myHCIcluster.contoso.com,"msft.sme.connection-type.hyper-converged-cluster","myHCIcluster|hyperv|JIT|WS2019"

"teamclusterNode.contoso.com","msft.sme.connection-type.server","legacyCluster|WS2016","global"

"myHCIclusterNode.contoso.com","msft.sme.connection-type.server","myHCIcluster|hyperv|JIT|WS2019"

导入 RDCman 连接

请使用以下脚本将 RDCman 中保存的连接导出到某个文件。 然后,可以将该文件导入 Windows Admin Center,并使用标记保留 RDCMan 分组层次结构。 试试吧!

将以下代码复制并粘贴到你的 PowerShell 会话:

#Helper function for RdgToWacCsv

function AddServers {

param (

[Parameter(Mandatory = $true)]

[Xml.XmlLinkedNode]

$node,

[Parameter()]

[String[]]

$tags,

[Parameter(Mandatory = $true)]

[String]

$csvPath

)

if ($node.LocalName -eq 'server') {

$serverName = $node.properties.name

$tagString = $tags -join "|"

Add-Content -Path $csvPath -Value ('"'+ $serverName + '","msft.sme.connection-type.server","'+ $tagString +'"')

}

elseif ($node.LocalName -eq 'group' -or $node.LocalName -eq 'file') {

$groupName = $node.properties.name

$tags+=$groupName

$currNode = $node.properties.NextSibling

while ($currNode) {

AddServers -node $currNode -tags $tags -csvPath $csvPath

$currNode = $currNode.NextSibling

}

}

else {

# Node type isn't relevant to tagging or adding connections in WAC

}

return

}

.SYNOPSIS

Convert an .rdg file from Remote Desktop Connection Manager into a .csv that can be imported into Windows Admin Center, maintaining groups via server tags. This will not modify the existing .rdg file and will create a new .csv file

.DESCRIPTION

This converts an .rdg file into a .csv that can be imported into Windows Admin Center.

.PARAMETER RDGfilepath

The path of the .rdg file to be converted. This file will not be modified, only read.

.PARAMETER CSVdirectory

Optional. The directory you wish to export the new .csv file. If not provided, the new file is created in the same directory as the .rdg file.

.EXAMPLE

C:\PS> RdgToWacCsv -RDGfilepath "rdcmangroup.rdg"

#>

function RdgToWacCsv {

param(

[Parameter(Mandatory = $true)]

[String]

$RDGfilepath,

[Parameter(Mandatory = $false)]

[String]

$CSVdirectory

)

[xml]$RDGfile = Get-Content -Path $RDGfilepath

$node = $RDGfile.RDCMan.file

if (!$CSVdirectory){

$csvPath = [System.IO.Path]::GetDirectoryName($RDGfilepath) + [System.IO.Path]::GetFileNameWithoutExtension($RDGfilepath) + "_WAC.csv"

} else {

$csvPath = $CSVdirectory + [System.IO.Path]::GetFileNameWithoutExtension($RDGfilepath) + "_WAC.csv"

}

New-item -Path $csvPath

Add-Content -Path $csvPath -Value '"name","type","tags"'

AddServers -node $node -csvPath $csvPath

Write-Host "Converted $RDGfilepath `nOutput: $csvPath"

}

若要创建 .CSV 文件,请运行以下命令:

RdgToWacCsv -RDGfilepath "path\to\myRDCManfile.rdg"

将生成的 .CSV 文件导入 Windows Admin Center,你的所有 RDCMan 分组层次结构将通过连接列表中的标记来表示。 有关详细信息,请参阅使用 PowerShell 通过标记导入或导出连接。

查看 Windows 管理中心中使用的 PowerShell 脚本

连接到服务器、群集或 PC 后,可以查看支持 Windows 管理中心中可用 UI 操作的 PowerShell 脚本。 从工具中,单击顶部应用程序栏中的 PowerShell 图标。 从下拉列表中选择一种感兴趣的命令,导航到相应的 PowerShell 脚本。

95b56bd635318e4e92217de893cb2976.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值