vendredi 19 février 2021

script in powershell to open and change a value in gpedit (group policy editor)

Hello Everybody ! My question is about creating a script in powershell. I need an example that shows me how to change a value in gpedit using the power shell. Is to automate the implementation of changes, to increase security.

Manually:

Configure the policy value for Computer Configuration >> Administrative Templates >> Windows Components >> Windows Remote Management (WinRM) >> WinRM Client >> "Disallow Digest authentication" to "Enabled".

For automatite.

Registry Hive: HKEY_LOCAL_MACHINE Registry Path: \SOFTWARE\Policies\Microsoft\Windows\WinRM\Client\

Value Name: AllowDigest

Value Type: REG_DWORD Value: 0

Aucun commentaire:

Enregistrer un commentaire