ITPub博客

首页 > 应用开发 > IT综合 > Exchange 2010 Powershell脚本攻略(十二)

Exchange 2010 Powershell脚本攻略(十二)

原创 IT综合 作者:imsunkist 时间:2011-07-12 23:57:51 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/23700676/viewspace-1052338/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-04-11

  • 博文量
    37
  • 访问量
    55853