Ask Your Question
1

How can the RootSDDL be configured through PowerShell for winrm/config/service?

asked 2021-08-01 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-03-05 04:00:00 +0000

lakamha gravatar image

To configure the RootSDDL for winrm/config/service through PowerShell, follow these steps:

  1. Open PowerShell as an administrator.

  2. Enter the following command to view the current RootSDDL for winrm/config/service:

    Get-Item -Path WSMan:\localhost\Service\Configuration | Select-Object -ExpandProperty RootSDDL
    
  3. If necessary, modify the RootSDDL by creating a new SDDL string using the Security Descriptor Definition Language (SDDL) syntax. For example:

    $NewRootSDDL = 'O:NSG:BAD:P(A;CI;KR;;;BU)(A;CI;KA;;;BA)(A;CI;KA;;;SY)(A;CI;KA;;;LS)(A;;KR;;;NS)'
    
  4. Apply the new RootSDDL to the winrm/config/service configuration:

    Set-Item -Path WSMan:\localhost\Service\Configuration -Value @{RootSDDL=$NewRootSDDL}
    
  5. Verify that the new RootSDDL has been applied:

    Get-Item -Path WSMan:\localhost\Service\Configuration | Select-Object -ExpandProperty RootSDDL
    
  6. Exit PowerShell.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-01 11:00:00 +0000

Seen: 23 times

Last updated: Mar 05 '22