remote install of DPM 2010 agents

Posted by


CASE: sometimes the deploy of DPM 2010 agents just failes. Most of the time it is just because the default firewall (of W2K8) doesn’t allow you to.do it.


SOLUTION: you can do the installation manually but that implies you need to log on to every server. However; a lazy engineer is a good engineer so we will try to do this remote (from the DPMserver).

PREPARATION:
1) on the DPM server, share your agents folder as \\DPMserver\DPMAgents (C:\Program Files\Microsoft DPM\DPM\ProtectionAgents\RA\3.0.7696.0).
2) install Sysinternals Suite (LINK) to C:\Windows\System32. Add the path to your system variables; go to Properties option in MyComputer, Advanced tab, Environment Variables, Path. Put a semicolon after the last character and add your path to SysInternals folder. Test this by running BGINFO from the command line.

EXECUTION:
Run CMD as Administrator
run following commands:

psexec \\CLIENT01 -s cmd /C net use X: \\DPMserver\DPMAgents
psexec \\CLIENT01 -s cmd /C X:\amd64\DPMAgentInstaller_x64 /q


Now that the agent is installed, you need to tell it where the DPMserver is because this enables some ports on the Windows Firewall.

Psexec \\CLIENT01 -s cmd /C “C:\Program Files\Microsoft Data Protection Manager\DPM\bin\SetDpmServer.exe” -dpmServerName DPMserver
Once this is done the Agent needs to be imported in the DPMserver:

C:\Windows\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile “C:\Program Files\Microsoft DPM\DPM\bin\dpmshell.psc1” -noexit -command “.’C:\Program Files\Microsoft DPM\DPM\bin\Attach-ProductionServer.ps1′ DPMserver.domain.local CLIENT01 ‘user’ ‘password’ ‘domain'”

Your DPM agents is well installed but there is just one other thing we can add to this and that’s the enabling of the Windows Backup Server feature on the client (otherwise you will not be able to backup System State and Bare Metal)
psexec \\CLIENT01 -s cmd /C dism /online /enable-feature /featurename:WindowsServerBackup

NOTE: these few lines of script are now a base which I will be using to create a decent script that allows you to do it in one time and for multiple servers. If you just put these lines after each other in a CMD file, it does not go well sometimes.
Be Social and Share: Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Leave a Reply

Your email address will not be published. Required fields are marked *