K
K
kondrash0552016-05-23 15:56:34
System administration
kondrash055, 2016-05-23 15:56:34

How to give Messages permission in TCP-RDP via wmi?

Good day.
In win server 2008r2 there was a security setting in the terminal gateway properties. It was removed in 2012r2.
How to give a user (user group) the right to send messages via msg?
Technical support says that you can give group rights

Configure Permissions using PowerShell When Remote Desktop Session Host Configuration is
unavailable, such as with Server 2012(R2) Object {$_.TerminalName -eq "RDP-Tcp"}).AddAccount("domain\customGroup",2) The second parameter of the AddAccount determines guest(0),user(1),full(2) access, reference : msdn.microsoft.com/en-us/library/aa383815%28v=vs.8...

And I need to put down a specific daw.
Tell me how to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kondrash055, 2016-05-24
@kondrash055

In cmd with local administrator rights.

wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSPermissionsSetting WHERE (TerminalName ="RDP-Tcp") CALL AddAccount "server\group",1

with this we set user rights for a group
in powershell
(Get-WmiObject Win32_TSAccount -Namespace root\CIMV2\TerminalServices -Filter "TerminalName='RDP-Tcp' AND Accountname='server\\group'").ModifyPermissions(7,1)

this gives the right to send a message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question