2013-03-07 59 views
7

我似乎无法找到我的系统上NetSecurity模块。我正在使用一个Amazon Windows 2008 Server R2 SP1实例。Powershell NetSecurity模块在哪里?

Get-Module -ListAvailable在我的环境中返回此:

ActiveDirectory (I installed this)  
ADRMS  
AppLocker  
BestPractices  
BitsTransfer  
CimCmdlets  
ISE  
Microsoft.PowerShell.Diagnostics/Host/Management/Security/Utility  
Microsoft.WSMan.Management  
PSDiagnostics  
PSScheduledJob  
PSWorkflow  
PSworkflowUtility  
ServerManaer  
TroubleshootingPack 

我试图安装WMF 3.0,但据报道,已经安装。

回答

6

的是new modules in powershell 3.0只包括作为角色的一部分/特点是附带Windows Server 2012中,在某些情况下,他们也适用于Windows 8。不幸的是,它们不能安装在之前版本的Windows上,并且NetSecurity是这个模块之一

+0

Tks。看起来像COM对象是我现在操纵防火墙规则的唯一方式。 – 2013-03-12 22:55:23

+0

我正在为Vista/2008 +开发模块,该模块实现了NetSecurity模块中与防火墙相关的重要cmdlet。它将很快完成并在github上提供。准备发布时,我会在[博客](http://andyarismendi.blogspot.com)上发帖。 – 2013-03-26 01:27:42