View Code? Open in Web Editor
NEW
PowerShell module used for managing Microsoft Endpoint Manager Configuration Manager distribution point content.
License: GNU General Public License v3.0
pscmcontentmgmt's Introduction
- ๐ญ Iโm currently working on nothing open-source related, but a few projects at work which consume time!
- ๐ฑ Iโm currently learning mongodb
- ๐ค Iโm looking for help with learning more about mongodb
- ๐ฌ Ask me about PowerShell, Azure, Linux, ConfigMgr (SCCM/MEMCM/MECM)
- ๐ซ How to reach me: Twitter
- ๐ Pronouns: he/him
- โก Fun fact: I have a Beagle named Alfie - send help ๐
pscmcontentmgmt's People
Contributors
pscmcontentmgmt's Issues
Looks like even when explicitly setting the SiteServer and SiteCode params in Compare-DPContent, the params aren't passed to the Get-DPConent cmdlet
PS C:\> $DPGroupContent = Compare-DPContent -Source 'DP01.contoso.lan' -Target 'DP02.contoso.lan' -SiteServer 'Site01.contoso.lan' -SiteCode 'C01'
Get-DPContent : Please supply a site code using the -SiteCode parameter
At C:\Tools\PSCMContentMgmt-master\PSCMContentMgmt-master\Public\Compare-DPContent.ps1:71 char:26
+ $SourceContent = Get-DPContent -DistributionPoint $Source
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-DPContent
I think modifying lines 71-72
$SourceContent = Get-DPContent -DistributionPoint $Source
$TargetContent = Get-DPContent -DistributionPoint $Target
to
$SourceContent = Get-DPContent -DistributionPoint $Source -SiteCode $SiteCode -SiteServer $SiteServer
$TargetContent = Get-DPContent -DistributionPoint $Target -SiteCode $SiteCode -SiteServer $SiteServer