我正在创建一个计划任务,从
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
原文链接:https://www.f2er.com/windows/369271.html计算机> Windows设置>安全设置>地方政策>用户权利>
管理审计和安全日志