System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This article describes how to configure Windows-based computers to manage Internet Protocol security (IPsec) policies and to monitor IPsec activity for remote computers.
On Windows-based computers, you can use the IP Security Policy Management Microsoft Management Console (MMC) snap-in to remotely manage IPsec policies. Additionally, you can use the IP Security Monitor MMC snap-in to remotely monitor IPsec activity.
On Windows Server 2003-based computers and later Windows-based computers, you can also use the Netsh command-line utility to remotely manage IPsec policies and to remotely monitor IPsec activity.
Note Windows XP does not have an IPsec context for the Netsh command. Therefore, the Netsh command cannot be used to configure IPsec on Windows XP-based computers.
To manage an IPsec policy for a remote computer on a Windows-based remote computer, both of the following conditions must be true:
You must be an administrator on the remote computer.
Remote management must be enabled on the remote computer.
Add yourself as an administrator on the remote computer
On the remote computer that you want to remotely manage or monitor, click Start, click Run, type compmgmt.msc, and then click OK.
In the Computer Management Microsoft Management Console (MMC) snap-in, expand Local Users and Groups, and then click Groups.
Double-click Administrators.
In the Properties dialog box, click Add.
In the Enter the object names to select area, type the name of the user account that you want to add as an administrator for this computer.
Click Check Names, and then click OK two times.
Enable remote management for legacy IPsec on the remote computer
Note These steps apply only to Windows Vista and Windows 7.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
On the computer that you want to remotely manage or monitor, click Start, click Run, type regedit, and then click OK.
Locate and then click the following registry subkey:
On the Edit menu, point to New, and then click DWORD Value.
Type EnableRemoteMgmt, and then press ENTER.
Right-click the EnableRemoteMgmt entry, and then click Modify.
In the Value data box, type 1, and then click OK.
Exit Registry Editor.
Start the RemoteRegistry service. To do this, type net start remoteregistry at a command prompt, and then press ENTER.
Start the PolicyAgent service. To do this, type net start policyagent at a command prompt, and then press ENTER.
Make sure that the user who will manage or monitor the computer has Administrator permissions on the computer.
In the Advanced Security section of Windows Firewall, enable Remote Service Management rules.
Enable remote management on the remote computer
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
On the computer that you want to remotely manage or monitor, click Start, click Run, type regedit, and then click OK.
Locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
On the Edit menu, point to New, and then click DWORD Value.
Type EnableRemoteMgmt, and then press ENTER.
Right-click the EnableRemoteMgmt entry, and then click Modify.
In the Value data box, type 1, and then click OK.
Exit Registry Editor.
Open a command prompt as an administrator, type the following command, and then press ENTER:
sc config policyagent start= auto
Restart the computer.
Configure the IP Security Policy Management MMC snap-in to manage IPsec policies for remote computers
On the computer that you are using to manage IPsec policies for remote computers, click Start, click Run, type mmc, and then click OK.
On the File menu, click Add/Remove Snap-in.
In the Add/Remove Snap-in dialog box, click Add.
In the Available Standalone Snap-ins dialog box, click IP Security Policy Management, and then click Add.
In the Select which computer or domain this snap-in will manage dialog box, click Another computer, type the name or the IP address of the remote computer that you want to manage, and then click Finish.
Click Close, and then click OK.
Configure the IP Security Monitor MMC snap-in to monitor IPsec activity for remote computers
On the computer that you are using to monitor IPsec activity for remote computers, click Start, click Run, type mmc, and then click OK.
On the File menu, click Add/Remove Snap-in.
In the Add/Remove Snap-in dialog box, click Add.
In the Available Standalone Snap-ins dialog box, click IP Security Monitor, and then click Add.
Click Close, and then click OK.
In MMC, right-click IP Security Monitor, and then click Add Computer.
In the Add Computer dialog box, click The following computer, type the name or the IP address of the remote computer that you want to manage, and then click OK.
Use the Netsh command-line utility to remotely manage IPsec policies and to remotely monitor IPsec activity
On a Windows Server 2003-based computer, you can use the Netsh command-line utility to remotely manage IPsec policies and to remotely monitor IPsec activity. To do this, follow these steps:
On the computer that you are using to remotely manage IPsec policies and to remotely monitor IPsec activity, click Start, click Run, type cmd, and then click OK.
At the command prompt, type the following command, and then press ENTER: