outlook默认的ost本地大小是有上限的,当到达47.5GB时,outlook就拒绝继续写入数据了。可以通过修改注册表,来提高这个上限。
注意,修改的注册表项是与用户深度绑定的,所以不能用管理员权限运行,只能运行在当前用户下
第1步:关闭outlook,以当前用户的权限打开powershell
第2步:运行一下内容(直接粘贴+回车)
$RegPath = "HKCU:\Software\Microsoft\Office\16.0\Outlook\PST"
New-Item -Path $RegPath -Force | Out-Null
New-ItemProperty -Path $RegPath `
-Name "MaxLargeFileSize" `
-PropertyType DWord `
-Value 102400 `
-Force | Out-Null
New-ItemProperty -Path $RegPath `
-Name "WarnLargeFileSize" `
-PropertyType DWord `
-Value 97280 `
-Force | Out-Null
第3步:验证修改结果
Get-ItemProperty $RegPath | Select-Object MaxLargeFileSize, WarnLargeFileSize
第4步:打开outlook,测试效果