Sets a service's discretionary access control list (i.e. DACL).
Set-ServiceAcl [-Name] <String> [-Dacl] <DiscretionaryAcl> [-WhatIf] [-Confirm] [<CommonParameters>]
The existing DACL is replaced with the new DACL. No previous permissions are preserved. That's your job. You're warned!
You probably want Grant-ServicePermission or Revoke-ServicePermission instead.
| Name | Type | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|---|
| Name | String | The service whose DACL to replace. |
true | false | |
| Dacl | DiscretionaryAcl | The service's new DACL. |
true | false | |
| WhatIf | SwitchParameter | false | false | ||
| Confirm | SwitchParameter | false | false | ||
| CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters. |
Set-ServiceDacl -Name 'Hyperdrive' -Dacl $dacl
Replaces the DACL on the Hyperdrive service. Yikes! Sounds like something the Empire would do, though.