Windows 10 - User role assignments from command line

Lotfi BOUCHERIT 91 Reputation points
2021-08-04T17:20:39.317+00:00

Hello,
I have a network with more than 50 Windows 10 Professional devices, and i would like to change Security Policy Settings remotely.
I would like to know, if there's command (powershell, vbs, batch) to set it, without logging in to all devices, and make changes?

Thank you in advance,

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,840 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Reza-Ameri 16,866 Reputation points
    2021-08-06T15:25:38.783+00:00

    You may use New-GPO command to set a Group Policy using PowerShell, take a look at:
    https://learn.microsoft.com/en-us/powershell/module/grouppolicy/new-gpo
    You have to set the registry for the GPO too, using Set-GPRegistryValue , take a look at:
    https://learn.microsoft.com/en-us/powershell/module/grouppolicy/set-gpregistryvalue

    0 comments No comments