如何使用Powershell更改Word和Powerpoint 2013的自动保存间隔?

我使用PowerShell脚本并将自动恢复保存间隔更改为2或3分钟。 我得到它在Excel 2013上工作,但似乎无法使其在Word或PowerPoint上工作。

这是Excel 2013的:

$a = New-Object -comobject Excel.Application $a.AutoRecover.Time = 2 

这是Excel的,它的工作原理。 这是我的Word和PowerPoint的:

 $a = New-Object -comobject Excel.Application $b = New-Object -comobject Word.Application $c = New-Object -comobject PowerPoint.Application ## Enable Autorecover if it happens to be disabled $a.AutoRecover.Enabled = True $b.AutoRecover.Enabled = True $c.AutoRecover.Enabled = True ## Change the timer $a.AutoRecover.Time = 2 $b.Options.SaveInterval = 1 $c.Options.SaveInterval = 1' 

$ a.AutoRecover.Time = 2这是Excel工作正常。 但是相同的代码不适用于Word或PowerPoint。

它的最后两行不起作用。 我不知道自动恢复定时器的path。

任何帮助?