Exchange 2010 Powershell指令碼攻略(十二)

ImSunkist發表於2011-07-12

Disable-InMemoryTracing

$binpath = (get-itemproperty HKLM:SOFTWAREMicrosoftExchangeServerv14Setup).MsiInstallPath + "Bin"

$filename = "EnabledInMemoryTraces.Config"

$fullpath = $binpath + $filename

remove-item ($fullpath + ".bak") -ErrorAction SilentlyContinue

rename-item $fullpath ($filename + ".bak")

gc ($fullpath + ".bak") | %{$_.Replace("InMemoryTracing:Yes","InMemoryTracing:No")} | out-file -FilePath $fullpath

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23700676/viewspace-1052338/,如需轉載,請註明出處,否則將追究法律責任。

相關文章