powershell – 我的服务帐户需要什么来解决robocopy中的“管理审
发布时间:2020-12-27 03:15:07 所属栏目:Windows 来源:网络整理
导读:我正在创建一个计划任务,从 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
我正在创建一个计划任务,从 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:ITSCopyScriptsbox1-backup-robocopy.log "script running" #Input the variables for the robocopy script $Source = "box1-prodimagesprod" $Destination = "E:Box1Backupsimages" $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:ITSCopyScriptsbox1-backup-robocopy.log /tee 任何帮助解决这个问题将非常感激. 运行gpedit.msc计算机> Windows设置>安全设置>地方政策>用户权利> 管理审计和安全日志 (编辑:ASP站长) 【免责声明】本站内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。 |
相关内容
未处理完善
-
无相关信息
最新更新