none
Get the name of the DPM server RRS feed

  • Question

  • With a powershell command, I want to query any computer on my network, so that it sends me the name of the DPM server where it is backed up.
    Is there a command to do that?
    Thanks for your help.
    Thursday, October 10, 2019 3:43 PM

Answers

  • So the first command:

    $DPMServer = ((GWMI -Query "Select * From Win32_groupuser" -ComputerName "DPMagentComputer.domain.com" | ? {$_.GroupComponent -Like "*DPMRADm*"} | Select PartComponent).PartComponent).Split("`"$")[3]
    $DPMServer

    Change the "DPMagentComputer.domain.com" to one of your computers that is protected by DPM.

    Example:

    The second command must be run in a Command Prompt, it will return a lot of jibberish but the first line will tell us the name of the DPM Server.

    Example:

    The third command should work on any computer that is backed up by a DPM server.

    Example:


    Blog:  https://thesystemcenterblog.com LinkedIn: 


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Proposed as answer by Leon Laude Friday, October 11, 2019 3:52 PM
    • Marked as answer by ODIACI Friday, October 11, 2019 4:38 PM
    Friday, October 11, 2019 1:45 PM

All replies

  • Hi,

    There are a few methods to check this, you can probably write a nicer PowerShell script to do this, but below are some methods:

    Method 1

    $DPMServer = ((GWMI -Query "Select * From Win32_groupuser" -ComputerName <Insert Computer Name> | ? {$_.GroupComponent -Like "*DPMRADm*"} | Select PartComponent).PartComponent).Split("`"$")[3]

    Method 2

    Type "C:\Program Files\Microsoft Data Protection Manager\DPM\ActiveOwner\"*.

    Method 3

    Get-LocalGroupMember -Group "DPMRADmTrustedMachines" | Select Name

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Proposed as answer by Leon Laude Friday, October 11, 2019 3:52 PM
    Thursday, October 10, 2019 5:40 PM
  • So the first command:

    $DPMServer = ((GWMI -Query "Select * From Win32_groupuser" -ComputerName "DPMagentComputer.domain.com" | ? {$_.GroupComponent -Like "*DPMRADm*"} | Select PartComponent).PartComponent).Split("`"$")[3]
    $DPMServer

    Change the "DPMagentComputer.domain.com" to one of your computers that is protected by DPM.

    Example:

    The second command must be run in a Command Prompt, it will return a lot of jibberish but the first line will tell us the name of the DPM Server.

    Example:

    The third command should work on any computer that is backed up by a DPM server.

    Example:


    Blog:  https://thesystemcenterblog.com LinkedIn: 


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Proposed as answer by Leon Laude Friday, October 11, 2019 3:52 PM
    • Marked as answer by ODIACI Friday, October 11, 2019 4:38 PM
    Friday, October 11, 2019 1:45 PM
  • Hi,

    Thank you very much.
    the first command works very well.
    See you soon

    Friday, October 11, 2019 3:28 PM
  • You’re welcome.

    (Please don’t forget to mark helpful replies as answer)


    Blog: https://thesystemcenterblog.com LinkedIn:

    Friday, October 11, 2019 3:51 PM
  • You’re welcome.

    (Please don’t forget to mark helpful replies as answer)


    Blog: https://thesystemcenterblog.com LinkedIn:

    Friday, October 11, 2019 3:51 PM
  • How can I mark helpful?
    Friday, October 11, 2019 4:45 PM
  • You've already marked as answer, so that's enough :-)

    This will help others in the community to identify useful contributions!


    Blog: https://thesystemcenterblog.com LinkedIn:

    Friday, October 11, 2019 4:47 PM
  • Ok, I see. Thanks again !
    Friday, October 11, 2019 5:17 PM