问题描述
大家好,
Windows 2012+ Exchange 2013 CU10
Windows 2012+ Exchange 2013 CU10
我关注此维基:
如何使用Exchange脚本的任务计划程序
How to use Task Scheduler for Exchange scripts
http://social.technet.microsoft.com/wiki/contents/articles/23150.how-to-use-task- scheduler-for-exchange-scripts.aspx
http://social.technet.microsoft.com/wiki/contents/articles/23150.how-to-use-task-scheduler-for-exchange-scripts.aspx
来测试计划任务。
我可以在windows powershell中运行示例cmdlet:
I can run the example cmdlet in windows powershell:
C:\ Windows \ System32 \ WindowsPowerShell \v1.0 \ Powershell.exe -noExit -Command"。'C:\Program Files\Microsoft \ Exchange Server \ V15 \ Bin \RemoteExchange.ps1'; Connect-ExchangeServer -auto;
获取队列> c:\ temp \queue.txt"
C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe -noExit -Command ".'C:\Program Files\Microsoft\Exchange Server\V15\Bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto;Get-queue > c:\temp\queue.txt"
但如果我用Ne 替换get- 队列 w-MigrationBatch -Local -Name MigrationBatch1 - CSVData([System.IO.File] :: ReadAllBytes(" D:\ mailboxmove \ mailboxlist.csv")) - 目标数据库&mbsp01 -AutoStart -AutoComplete -NotificationEmails
abc @ contoso ,它不起作用。它说")"丢失或类似错误。有人可以给我一个提示,谢谢。
< p style =" margin :0cm 0cm 0pt">< span lang =" EN-US"风格= QUOT;颜色:#0070c0; font-family:& quot; Segoe UI& quot;,& quot; sans-serif& quot ;; font-size:10pt"> Frank Wang< br /> TechNet社区支持< / span>< / p>
< p style =" margin:0cm 0cm 0pt">< a href =" http://blogs.technet.com/b/onescript" rel =" nofollow">< img src =" https://xnoegg.bay.livefilestore.com/y1plmwd9pFqoTZWcmr6-bsBuS7hTcNbr8YdT4WL3RRAuhDPVyUUOVchQt3EexNEBj4xYyornsD1kyLmtVqqsDfKv3PEEg9ejQzT/signature.jpg?psid = 1"
alt =""宽度= QUOT; 430" height =" 30.2">< / a>< / p>
<p style="margin:0cm 0cm 0pt"><span lang="EN-US" style="color:#0070c0; font-family:"Segoe UI","sans-serif"; font-size:10pt">Frank Wang<br/> TechNet Community Support</span></p> <p style="margin:0cm 0cm 0pt"><a href="http://blogs.technet.com/b/onescript" rel="nofollow"><img src="https://xnoegg.bay.livefilestore.com/y1plmwd9pFqoTZWcmr6-bsBuS7hTcNbr8YdT4WL3RRAuhDPVyUUOVchQt3EexNEBj4xYyornsD1kyLmtVqqsDfKv3PEEg9ejQzT/signature.jpg?psid=1" alt="" width="430" height="30.2"></a></p>
推荐答案
您是否可以通过错误详细信息分享您当前正在尝试的确切命令。从上面的信息来看,很难给出明确失败的提示。在运行scipt时放置-verbose以便于查找错误。
Could you share the exact command what you are currently trying with error details. From the above information it's very tough to give a hint where its specifically failed. While running the scipt put -verbose so that its easy to find out an error.
根据上面的详细信息,我们需要添加;在启动get-queue或new-migrationbatch之前,您是否已在脚本中添加了。你能否交叉验证。
As per the above details we need to add ; before starting the get-queue or new-migrationbatch, have you added in the script. Could you cross verify.
感谢您共享支持链接(Exchange脚本的任务计划程序)。
Thanks for sharing the supporing link (Task Scheduler for Exchange scripts).
这篇关于为New-MigrationBatch安排任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!