PowerShell Command
Get-WmiObject -namespace root\ccm\locationservices -class SMS_ActiveMPCandidate
Output
__GENUS : 2
__CLASS : SMS_ActiveMPCandidate
__SUPERCLASS :
__DYNASTY : SMS_ActiveMPCandidate
__RELPATH : SMS_ActiveMPCandidate.MP=”xyz.abc.com”,MPBGRFallbackType=”None”,Type=”Internet”
__PROPERTY_COUNT : 14
__DERIVATION : {}
__SERVER : TEST-COMPUTER
__NAMESPACE : ROOT\ccm\locationservices
__PATH : \\TEST-COMPUTER\ROOT\ccm\locationservices:SMS_ActiveMPCandidate.MP=”xyz.abc.com”,MPBGRFallbackTy
pe=”None”,Type=”Internet”
Capabilities : <Capabilities SchemaVersion=”1.0″><Property Name=”SSL” Version=”1″/><Property Name=”SSLState”
Value=”63″/></Capabilities>
Index : 1
Locality : 0
MasterSiteCode :
MP : xyz.abc.com
MPBGRFallbackType : None
MPFallbackTime : 0
Protocol : OS
Reserved1 :
Reserved2 :
SiteCode :
State :
Type : Internet
Version : 8634
PSComputerName : Test-Computer
Or, return just the MP on Internet
(Get-WmiObject -Namespace Root\Ccm\LocationServices -Class SMS_ActiveMPCandidate | Where-Object {$_.Type -eq "Internet"}).MP