I have a user group called "Remote desktop users" which i need to add in "allow log on locally" section of User Rights Assignment in gpedit.
Following are the steps to do it manually.
go to gpedit
navigate to path “comp config>window settings>security settings>local policies>user rights assignment”
Double click on "Allow log on locally“" .
Add user "Remote desktop user"
This I want to achieve via powershell script.
Please help me with any suggestions.