Siin näiteks lisatakse kõik kasutajad (Everyone) rühma Remote Desktop Users.
CMD
lisamine:
net localgroup "Remote Desktop Users" "Everyone" /add
eemaldamine:
net localgroup "Remote Desktop Users" "Everyone" /delete
abiteave:
net localgroup /?
PS
lisamine:
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "Everyone"
eemaldamine:
Remove-LocalGroupMember -Group "Remote Desktop Users" -Member "Everyone"
vaatamine:
Get-LocalGroupMember -Group "Remote Desktop Users"
abiteave:
Get-Help Add-LocalGroupMember
Get-Help Remove-LocalGroupMember
Get-Help Get-LocalGroupMember