请帮我编写脚本以添加以下权限
- 身份验证后模拟客户端
- 锁定内存中的页面
- 执行卷维护任务
使用 PowerShell 到本地组。
您要添加权限,而不是权限。为此,您需要Windows Server 2003 资源工具包工具ntrights
中的实用程序:
ntrights -u DOMAIN\GROUP +r SeImpersonatePrivilege
ntrights -u DOMAIN\GROUP +r SeLockMemoryPrivilege
ntrights -u DOMAIN\GROUP +r SeManageVolumePrivilege