powershell – 我的服务帐户需要什么来解决robocopy中的“管理审
发布时间:2020-12-26 13:03:43 所属栏目: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设置>安全设置>地方政策>用户权利> 管理审计和安全日志 (编辑:濮阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – DNS递归是不安全的,但内部应用程序是必需的?
- windows – 使用SID从Active Directory检索用户详细信息
- 如何安装和配置Chrony作为NTP客户端?
- windows – 我真的需要MS Active Directory吗?
- windows-server-2008-r2 – 入站Windows防火墙核心网络规则
- 过渡到nftables,如何构建nftables的教程
- 如何在Linux中验证ISO镜像
- MacOS比Windows更安全?安全专家说出真相
- 如何在Windows XP上以只读方式安装硬盘?
- 微软发布新操作系统 不想立即提升 可以这样暂停Windows 11更