none
Fallout from using Disconnect-DPMServer RRS feed

  • Question

  • I am using a powershell script to extract information on replicas and ShadowCopies for planning purposes.

    The script contains a call to Disconnect-DPMServer (http://technet.microsoft.com/en-us/library/bb842063.aspx). 

    Can anyone confirm that this function is safe to use while DPM is in use either backing up to tape or performing a consistency check or whatever?

     

    Thursday, September 23, 2010 4:17 PM

Answers

  • The Connect and Disconnect calls are specific to the client and will affect only the Powershell window which is running your script. It has no effect on the DPM servers operation or any other clients.


    Thanks, Kapil Malhotra [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Sunday, November 14, 2010 3:08 AM
    Moderator
  • Hi Don,

    it is safe for DPM's own operations.
    This cmdlet only has bearing within the scope of your script and any other it may call.

    You may want to know that this cmdlet clears all object caches (for your PS session) with DPM2010.
    So you have gathered some nice collection of objects you are still working on, DO NOT call this cmdlet (or <serverobject>.Dispose()) because your objects may get cleared, certainly those that are cached or its values.

    In other words, call this cmdlet only if deliberate, typically at exit or error inside trap handler.

     

     

     


    \R2 This posting is provided "AS IS" with no warranties, and confers no rights
    Wednesday, October 13, 2010 8:57 AM

All replies

  • Hi Don,

    it is safe for DPM's own operations.
    This cmdlet only has bearing within the scope of your script and any other it may call.

    You may want to know that this cmdlet clears all object caches (for your PS session) with DPM2010.
    So you have gathered some nice collection of objects you are still working on, DO NOT call this cmdlet (or <serverobject>.Dispose()) because your objects may get cleared, certainly those that are cached or its values.

    In other words, call this cmdlet only if deliberate, typically at exit or error inside trap handler.

     

     

     


    \R2 This posting is provided "AS IS" with no warranties, and confers no rights
    Wednesday, October 13, 2010 8:57 AM
  • The Connect and Disconnect calls are specific to the client and will affect only the Powershell window which is running your script. It has no effect on the DPM servers operation or any other clients.


    Thanks, Kapil Malhotra [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Sunday, November 14, 2010 3:08 AM
    Moderator