add-pssnapin Microsoft.Exchange.Management.PowerShell.Setup
$path = "C:\Program Files\Microsoft\Exchange Server\V15\Setup\Perf"
$items = Get-ChildItem -Recurse $path
$files = $items | ?{$_.extension -eq ".xml"}
Write-Host "Registering all perfmon counters in $path"
Write-Host
$count = 0;
foreach ($i in $files)
{
$count++
$f = $i.directory, "\", $i.name -join ""
Write-Host $count $f -BackgroundColor red
New-PerfCounters -DefinitionFileName $f
}
c:\perfcounters.ps1
The Problem will be fix.
Post your comment:
Powered By 2013-2015 ©. Juszeil Conception version 2.0
Queries Executed : 0.0139 seconds