Instantiating COM object hnetcfg.fwpolicy2 on Remote Server

Posted by Pavan Keerthi on Server Fault See other posts from Server Fault or by Pavan Keerthi
Published on 2012-03-24T09:48:06Z Indexed on 2012/03/24 11:31 UTC
Read the original article Hit count: 350

I locked my self out by inadvertently changing RDP firewall rule to use IPSec,but without completing proper steps to setup IPSec channel from my laptop to server.

Luckily all wmi remoting on Server works,So I am trying to edit the rule with Powershell

When I enter below code ,the COM object is invoking on local machine.How can I invoke it on remote machine?

Enter-PSSession $Session
$fw = New-Object -ComObject hnetcfg.fwpolicy2

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about windows-server-2008-r2