Remote PowerShell

I installed System Center Data Protection Manager 2012 (SCDPM) with SP1 and installed the agents on all my servers. I then got an error when adding backups/protection groups. A whole bunch of my servers said “Replica is inconsistent”. I also received the following error in the event log of my SCDPM 2012 server.

Event ID: 3106
Source: DPM-EM

The replica of Non VSS Datasource Writer on <servername>.contoso.local is inconsistent with the protected data source. All protection activities for data source will fail until the replica is synchronized with consistency check. (ID: 3106)
DPM failed to create the backup. If you are backing up only System State, verify if there is enough free space on the protected computer to store the System State backup.  On protected computers running Windows Server2008, verify that Windows Server Backup (WSB) is installed and that it is not performing any other backup or recovery task. (ID: 30214)

Basically all that I needed to do is install the Windows Server Backup feature on all my servers. The easiest way to do this was by using Remote PowerShell, however first I needed to setup a group policy for all my servers so that they allowed me to connect to them remotely. Four settings in the GPO as follows:

  1. Computer Configuration > Policies > Windows Settings > Security Settings > System Services > Windows Remote Management (WS-Management) (Startup Mode: Automatic)
  2. Computer Configuration > Administrative Templates > Windows Components/Windows Remote Management (WinRM) > WinRM Service > Turn On Compatibility HTTP Listener (Enabled)
  3. Computer Configuration > Administrative Templates > Windows Components/Windows Remote Management (WinRM) > WinRM Service > Turn On Compatibility HTTPS Listener (Enabled)
  4. Computer Configuration > Administrative Templates > Windows Components/Windows Remote Management (WinRM) > WinRM Service > Allow remote server management through WinRM (Enabled)

    image

You can also enable remote PowerShell by running the following command on the local machine:

Enable-PSRemoting -Force

To test the connection:

Test-WsMan <hostname>

Entering a remote session:

Enter-PSSession -ComputerName <hostname> -Credential <username>

Install the Windows Server Feature on the Remote Server:

Dism /online /enable-feature /featurename:WindowsServerBackup

Exiting a remote session:

Exit-PSSession

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s