2017-01-07 46 views
0

我试图运行新PefTraceSession执行pefcmdlets,但它表明误差无法在PowerShell中

New-PefTraceSession : The term 'New-PefTraceSession' is not recognized as the name of a cmdlet, function, script file, 
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and 
try again. 

我试图安装的模块安装模块PEF,但它显示出错误的

PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'PEF'. 
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1375 char:21 
+ ...   $null = PackageManagement\Install-Package @PSBoundParameters 
+2

您需要[来自Microsoft消息分析器下载中心]安装(https://开头WWW。 microsoft.com/en-us/download/details.aspx?id=44226) –

回答

1

Using powershell to automate tracing

虽然与UI跟踪很简单,今天有一定的局限性。当涉及到追踪棘手问题时,您需要可扩展性和灵活性,以便测试何时启动和停止跟踪。我们在Message Analyzer中利用PowerShell和一组新的Cmdlet ,并附带消息分析器,您可以从Microsoft下载中心下载该消息分析器。

您可以下载邮件分析仪here