none
Cannot remove orphaned protected computer in DPM 2016. RRS feed

  • Question

  • I tried the GUI and powershell, neither work in removing a server from DPM.

    Anyone know how to do this now?

    The servers is not in a protection group.  There is NO data (protection group or inactive protection) for this server.

    PS C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\bin> .\Remove-Produc
    tionServer.ps1
    DPMServer:: dpm
    PSName:: protectedserver
    WARNING: Connecting to DPM server: dpm
    There is failure while removing production server
    C:\Program Files\Microsoft System Center 2012
    R2\DPM\DPM\bin\Remove-ProductionServer.ps1 : DPM was unable to remove the
    protected computer protectedserver.
    At line:1 char:1
    + .\Remove-ProductionServer.ps1
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
       tion
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
       n,Remove-ProductionServer.ps1

    Make sure that the protected computer is attached to the DPM server. If the prot
    ected computer is in the Active directory domain, make sure that you have provid
    ed the correct fully qualified domain name (FQDN) of the protected computer. If
    protectedserver is a workgroup computer configured to use NETBIOS, specify the NETBIOS na
    me. Otherwise specify the DNS name of the workgroup computer.

    PS C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\bin> .\Remove-Produc
    tionServer.ps1 -?
    Usage::
    Remove-ProductionServer.ps1 -DPMServername [dpmserver] -PSName [Production serve
    r]
    Or
    get-content [absolute path of PSNamesFile.txt] | Remove-ProductionServer.ps1 -DP
    MServername [dpmserver]
    Help::
    -Removes a server protected from this DPM computer.

    PS C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\bin>


    -=Chris

    Sunday, November 20, 2016 11:57 PM

All replies

  • Hi,

    Did you enter the FQDN of the protected server you wanted to remove ?   

    You can look for error details in the DPMCLI0Curr.errlog under C:\Users\USERNAME\AppData\Roaming\Microsoft\Microsoft System Center 2012 R2 Data Protection Manager


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.


    Wednesday, November 23, 2016 11:09 PM
    Moderator
  • Funny, I just had another one of these and found my previous post which is still unanswered.

    Here's the error log.  Not much info.

    1658    23B8    02/08    18:24:59.550    45    DpmServerFactory.cs(118)            NORMAL    Creating an instance of DpmServer for machine 'backup1.domain.com'. AsyncOperation is NOT passed.
    1658    23B8    02/08    18:24:59.566    62    DpmServerScope.cs(204)            NORMAL    Constructing DpmServerScope for ScopedObjectType: null, Scoped objects: null, AlertType NullType, ErrorId: -1, DetailedErrorId: -1
    1658    1B08    02/08    18:24:59.706    68    EngineServiceProxyWrapper.cs(138)            NORMAL    GetInstance :: User is Admin
    1658    1B08    02/08    18:24:59.722    09    engineservicesproxy.cpp(341)            NORMAL    EngineServicesProxy::CheckForPendingReboot()
    1658    23B8    02/08    18:24:59.722    09    engineservicesproxy.cpp(341)            NORMAL    EngineServicesProxy::CheckForPendingReboot()
    1658    23B8    02/08    18:24:59.738    09    engineservicesproxy.cpp(317)            NORMAL    EngineServicesProxy::GetCompatibleUIInformation()
    1658    23B8    02/08    18:24:59.738    28    mediamanagerservicesproxy.cpp(75)            NORMAL    MediaManagerServicesProxy::CheckForSafeLibrarySharingModeTransition()
    1658    23B8    02/08    18:24:59.738    09    engineservicesproxy.cpp(36)            NORMAL    EngineServicesProxy::GetDbConnectionString()
    1658    23B8    02/08    18:24:59.738    09    engineservicesproxy.cpp(243)            NORMAL    EngineServicesProxy::GetReplicaVolumeMountPath()
    1658    23B8    02/08    18:24:59.738    09    engineservicesproxy.cpp(550)            NORMAL    EngineServicesProxy::GetOSVersionOnDPMServer()
    1658    23B8    02/08    18:24:59.738    62    DpmServer.cs(3940)            NORMAL    Exception while fetching VMwareUpgradeActionRegValue: System.FormatException: Input string was not in a correct format.
    1658    23B8    02/08    18:24:59.738    62    DpmServer.cs(3940)            NORMAL       at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
    1658    23B8    02/08    18:24:59.738    62    DpmServer.cs(3940)            NORMAL       at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
    1658    23B8    02/08    18:24:59.738    62    DpmServer.cs(3940)            NORMAL       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.DpmServer.PreventVMwarePostUpgrade()
    1658    23B8    02/08    18:24:59.816    07    agentmanagerserv


    -=Chris

    Thursday, February 8, 2018 6:30 PM
  • I've just come across this thread looking for a solution.

    I replaced a 2008 R2 print server with a 2012 R2 print server and saw this same problem on DPM 2012 R2. I decommissioned the old server without removing the DPM agent first, then I replaced it with another server of the same name.

    I couldn't remove it from the GUI or by using the power shell command:

    .\Remove-ProductionServer.ps1 -DPMServer dpm2012r2 -PSName protectedserver.mydomain.com

    However, I noticed that the command also accepted input from a txt file, so I created a C:\PSServers.txt file and just put the name of the server in twice like:

    protectedserver
    protectedserver.mydomain.com

    I then ran it using:

    get-content C:\PSServers.txt | Remove-ProductionServer.ps1 -DPMServername dpm2012r2.mydomain.com

    I also tried removing the decommissioned server by the name I changed it to before I shut it down:

    .\Remove-ProductionServer.ps1 -DPMServer dpm2012r2 -PSName OLD-protectedserver.mydomain.com

    Both of these generated, but the next time I looked at the GUI, it was gone.



    • Edited by WorkProfile Wednesday, February 20, 2019 9:39 AM
    Wednesday, February 20, 2019 9:37 AM