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

ImSunkist發表於2011-07-12

Enable-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:No","InMemoryTracing:Yes")} | out-file -FilePath $fullpath

[@more@]

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

相關文章