Domain\User: Target domain and account (user or group) to which permissions are to be granted.PATH WIN32_TSPermissionsSetting.TerminalName="RDP-TCP" call AddAccount "Domain\user",X If it isn't in the path, add %SystemRoot%\System32\Wbem\, or change to that directory and run wmic.Īt the wmic:root\cli> prompt, type the following command: Create a script by using the following code sample: set RDPObj = GetObject("winmgmts:!Win32_TSPermissionsSetting.TerminalName='Console'")RDPobj.RestoreDefaults However, they won't modify these examples to provide added functionality or construct procedures to meet your specific requirements. ![]() Microsoft support engineers can help explain the functionality of a particular procedure. ![]() This article assumes that you're familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Which includes, but isn't limited to, the implied warranties of merchantability or fitness for a particular purpose. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. ![]() To change permissions for the console session (session zero), you must use the WMI methods below, and specify Console instead of RDP-Tcp for the terminal name. You can't use the GUI to configure permissions to sign in to the console session with RDP.
0 Comments
Leave a Reply. |