Remove SCCM Distribution Point Server with PowerShell

Once you have determined that an update to cmdlet library is available for SCCM, you must download the update. From the above PowerShell output, copy the download URL of the cmdlet library and paste it into the browser. The link loads the Microsoft download center. You can also verify the revision history. Select the ConfigMgr2012PowerShellCmdlets.msi file and select Download.

Once you have determined that an update to cmdlet library is available for SCCM, you must download the update. From the above PowerShell output, copy the download URL of the cmdlet library and paste it into the browser. The link loads the Microsoft download center. You can also verify the revision history. Select the ConfigMgr2012PowerShellCmdlets.msi file and select Download.

Distribute Cmdlet Library

Once you have determined that an update to cmdlet library is available for SCCM, you must download the update. From the above PowerShell output, copy the download URL of the cmdlet library and paste it into the browser. The link loads the Microsoft download center. You can also verify the revision history. Select the ConfigMgr2012PowerShellCmdlets.msi file and select Download.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

Download Configuration Manager Cmdlet Library

Once you have determined that an update to cmdlet library is available for SCCM, you must download the update. From the above PowerShell output, copy the download URL of the cmdlet library and paste it into the browser. The link loads the Microsoft download center. You can also verify the revision history. Select the ConfigMgr2012PowerShellCmdlets.msi file and select Download.

TIP: This script removes a distribution point by using a site code and site system role. So before you use this script, specify the following values in the script. This script removes a distribution point by using a site code and site system role. So before you use this script, specify the following values in the script.

Remove SCCM Distribution Point Using Powershell Script

This script removes a distribution point by using a site code and site system role. So before you use this script, specify the following values in the script.

$SiteCode – Provide your site code (3 alphanumeric characters).

$DistributionPoint – Specify the server FQDN from where you want to uninstall DP role.

Script Explanation

Remove-CMDistributionPoint – Removes a distribution point.

-Force – Runs the command without asking for user confirmation.

Copy the below script into a notepad and save it as filename.ps1 extension.

< #.SYNOPSIS
Remove Distribution Point role using PowerShell Script

.DESCRIPTION 
This scripts lets you uninstall SCCM Distribution Point

.PARAMETER DistributionPoint
This is the server name from which you would be uninstalling Distribution Point role.

.PARAMETER SiteCode
This is 3 letter site code.

.NOTES
Version: 1.0
Published Date: 10-Dec-2016
Updated Date: 21-Apr-2020
Author: Prajwal Desai
Website: https://www.prajwaldesai.com
#>

#Load the Configuration Manager Module
import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')
$Drive = Get-PSDrive -PSProvider CMSite
CD "$($Drive):"

#Site Code and Distribution Point Server Information
$SiteCode = 'IND'
$DistributionPoint = 'WIN2016.PRAJWAL.LOCAL'

#Check if the DP server is alive
Test-Connection -ComputerName $DistributionPoint -quiet

#Remove Distribution Point Role
write-host -ForegroundColor Green "The Distribution Point Role is being uninstalled on $DistributionPoint"
Remove-CMDistributionPoint -Force -SiteCode $SiteCode -SiteSystemServerName $DistributionPoint

In this post, I will show you how to update Configuration Manager cmdlet library to the latest version. You can manage your SCCM using PowerShell cmdlets after installing configuration manager cmdlets.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

How to get the script

In this post, I will show you how to update Configuration Manager cmdlet library to the latest version. You can manage your SCCM using PowerShell cmdlets after installing configuration manager cmdlets.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

In this post, I will show you how to update Configuration Manager cmdlet library to the latest version. You can manage your SCCM using PowerShell cmdlets after installing configuration manager cmdlets.

Download the Script

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

In this post, I will show you how to update Configuration Manager cmdlet library to the latest version. You can manage your SCCM using PowerShell cmdlets after installing configuration manager cmdlets.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

Update ConfigMgr with Script

So, how do you know an update to the configuration manager cmdlet library is available? A warning message will appear when you launch PowerShell and run any script.

WARNING: An update to the System Center 2012 Configuration Manager Cmdlet Library is available. Please go to ‘http://go.microsoft.com/fwlink/?LinkId=528947’ to download the latest version. Running cmdlet version: 5.0.8328.1155 Latest cmdlet version: 5.0.8373.1189

Download Configuration Manager Cmdlet Library

Once you have determined that an update to cmdlet library is available for SCCM, you must download the update. From the above PowerShell output, copy the download URL of the cmdlet library and paste it into the browser. The link loads the Microsoft download center. You can also verify the revision history. Select the ConfigMgr2012PowerShellCmdlets.msi file and select Download.

Most admins use ConfigMgr cmdlet library for many purposes, such as obtaining information about the SCCM hierarchy, obtaining a list of applications, and so on. A plethora of configuration manager cmdlets are available. If you’re looking for a cmdlet reference, look no further.

Leave a Comment