当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 将 HTTPS 分发点配置为拉取 DP 的源 DP

作者:精品下载站 日期:2024-12-14 10:49:02 浏览:12 分类:玩电脑

将 HTTPS 分发点配置为拉取 DP 的源 DP


本文将向您展示如何将 HTTPS 分发点配置为 Pull DP 的源 DP。 System Center Configuration Manager 的拉取分发点是一个标准分发点,它通过从源位置(如客户端)下载内容来获取分发的内容,而不是从站点服务器推送内容。最近,我为一位客户实施了 SCCM 的 PKI。实施后,我注意到我无法配置 Pull DP。没有错误,但我无法将 HTTPS 分发点设置为拉 DP 的源 DP。读完这篇文章我对这个问题有了更多的了解。它表示“尽管拉取分发点支持通过 HTTP 和 HTTPS 进行通信,但当您使用 Configuration Manager 控制台时,您只能指定为 HTTP 配置的源分发点。您可以使用 Configuration Manager SDK 指定为 HTTPS 配置的源分发点。“

[玩转系统] 将 HTTPS 分发点配置为拉取 DP 的源 DP

将 HTTPS 分发点配置为拉取 DP 的源 DP

TechNet 文章指出,使用 Configuration Manager SDK 应该可以做到这一点。您可以在安装分发点时或安装分发点后通过编辑分发点站点系统角色的属性来配置拉取分发点。配置为拉取分发点的分发点可以通过 HTTP 或 HTTPS 将内容传输到客户端。配置拉取分发点时,必须指定一个或多个源分发点。仅显示符合源分发点资格的分发点。使用 Configuration Manager 控制台时,只能将支持 HTTP 的分发点指定为源分发点。但是,您可以使用 Configuration Manager SDK 指定为 HTTPS 配置的源分发点。若要使用为 HTTPS 配置的源分发点,拉取分发点必须位于运行 Configuration Manager 客户端的计算机上。可以将一个拉取分发点指定为另一个拉取分发点的源分发点。我不确定是否使用配置管理器 SDK 来解决此问题。我发现了一个由 Kurt B Mayer 编写的非常好的脚本(点击链接从 Technet 下载)。此脚本可帮助您将 HTTPS 分发点设置为 Pull DP 的源 DP。

<#
.SYNOPSIS
Convert an SCCM 2012 Distribution Point into a Pull Distribution Point.

.DESCRIPTION 
The SCCM GUI console will not let admins choose an HTTPS-enabled Distribution Point as the source for a Pull Distribution Point.
This script uses PowerShell to associate an HTTPS-enabled Distribution Point with a Pull Distribution Point for content.
It can be used on both HTTPS-enabled and non-HTTPS-enabled DPs.  It was tested with SCCM 2012 R2 SP1.

.OUTPUTS
Results in a regular Distribution Point becoming a Pull Distribution Point.

.PARAMETER SiteCode
The three-letter SCCM site code in the hierarchy.

.PARAMETER DpSources
Designates one or more source servers that the Pull Distribution Point can get content from.

.PARAMETER DpTarget
Specifies the regular Distribution Point to convert into a Pull Distribution Point.

.EXAMPLE
.Enable-HttpsPullDp -SiteCode 'XYZ' -DpSources 'sccm-primary.mydomain.local' -DpTarget 'sccm-dp.mydomain.local'
Changes a target Distribution Point into a Pull Distribution Point using one or more source servers in the SCCM site.

.NOTES
Version: 1.0
Date: 05/29/2015
Authors: Kurt B. Mayer (MCSE)
#>
#requires -version 3


#Inputs:
param(
    [Parameter(Mandatory=$true)][string]$SiteCode,
    [Parameter(Mandatory=$true)][string[]]$DpSources,
    [Parameter(Mandatory=$true)][string]$DpTarget
)

#Connect to the SCCM site:
$Path = $(Split-Path -Path $env:SMS_ADMIN_UI_PATH -Parent)
$Module = "$PathConfigurationManager.psd1"
Import-Module -Name $Module
Set-Location -Path $($SiteCode + ':')

#Change the regular DP into a pull DP:
$PullDp = Get-CMDistributionPoint -SiteSystemServerName $DpTarget -SiteCode $SiteCode
Set-CMDistributionPoint -DistributionPoint $PullDp -EnablePullDP $true -SourceDistributionPoints $DpSources

复制上述脚本并以 .ps1 扩展名保存。将其存储在文件夹中。在配置管理器服务器上,启动命令提示符,将路径更改为存储脚本的文件夹并键入以下命令。

.Enable-HttpsPullDp -SiteCode 'XYZ' -DpSources 'sccm-primary.mydomain.local' -DpTarget 'sccm-dp.mydomain.local'

在哪里

DpSources - 指定拉取分发点可以从中获取内容的一个或多个源服务器。

DpTarget - 指定要转换为拉取分发点的常规分发点。

运行此脚本后,您应该能够将 HTTPS 分发点配置为 Pull DP 的源 DP。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯