locked
add users to Remote Desktop Group(local) script RRS feed

  • Question

  • My idea is to restrict users RDP to only to the machine which he was granted.we have redhat cloudforms setup, that provisions windows 7 VM from vmware template, and then joins to the domain. Due to security policy, only machines owner should be granted RDP access to the machine.

    My idea is if i can script this task, I can invoke from ansible. Is there a way to do it in powershell(without winrm) or any activedirectory modules ie. manage computer object(scripted format)?

    • Moved by Bill_Stewart Monday, April 30, 2018 9:20 PM Unanswerable drive-by question
    Sunday, January 28, 2018 4:26 PM

All replies

  • please re-read the what i asked for before replying, I m looking for other options to assign user to rdp group witout winrm. I have open up this question regular question blog, they referred me here. feels like im in government center, typicall.
    • Edited by npally Wednesday, February 21, 2018 7:50 PM
    Wednesday, February 21, 2018 7:49 PM
  • This forum does not write or provide scripts on request.  Look in the Gallery or on PowerShellGet for pre-written scripts.

    You can also learn PowerShell and use the PS Local CmdLets to alter local groups.

    get-command -Module Microsoft.PowerShell.LocalAccounts

    Somewhere in there is a command that you might find useful.


    \_(ツ)_/

    Wednesday, February 21, 2018 7:54 PM