powershell – 我的服务帐户需要什么来解决robocopy中的“管理审核用户权限”错误?

我正在创建一个计划任务,从 Windows Server 2012 R2上的脚本调用robocopy.无论是手动运行还是从计划任务运行,它都会抛出以下错误:
ERROR : You do not have the Manage Auditing user right.
*****  You need this to copy auditing information (/COPY:U or /COPYALL).

任务设置为“运行用户是否登录”和“以最高权限运行”.脚本如下:

Add-Content E:\ITS\CopyScripts\box1-backup-robocopy.log "script running"
#Input the variables for the robocopy script
$Source = "\\box1-prod\images\prod\"
$Destination = "E:\Box1\Backups\images"
$Retries = 1

#This is the Robocopy script
Robocopy.exe $Source $Destination /E /Z /COPYALL /XO /r:$Retries /purge /xd '$RECYCLE.BIN' 'System Volume Information' '._nfs' /log:E:\ITS\CopyScripts\box1-backup-robocopy.log /tee

任何帮助解决这个问题将非常感激.

运行gpedit.msc

计算机> Windows设置>安全设置>地方政策>用户权利>

管理审计和安全日志

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...