我使用以下脚本在活动目录中创建用户
Object object{0, 0, "Skillet"};
storage.replace(object);
我的问题是我不知道如何取消选择ADUC中用户属性窗口的“远程控制”选项卡上的“ 需要用户许可”复选框。知道是什么属性,或者如何遍历用户对象的所有属性以找到它?
答案 0 :(得分:1)
您可以在新用户上使用EnableRemoteControl
属性:
objNewUser.EnableRemoteControl = 2
将此设置为以下任意值:
Disable 0 Remote control is disabled. EnableInputNotify 1 The user of remote control has full control of the user's session, with the user's permission. EnableInputNoNotify 2 The user of remote control has full control of the user's session; the user's permission is not required. EnableNoInputNotify 3 The user of remote control can view the session remotely, with the user's permission; the remote user cannot actively control the session. EnableNoInputNoNotify 4 The user of remote control can view the session remotely, but not actively control the session; the user's permission is not required.