Set-ServiceAcl

Sets a service's discretionary access control list (i.e. DACL).

Syntax

Set-ServiceAcl [-Name] <String> [-Dacl] <DiscretionaryAcl> [-WhatIf] [-Confirm] [<CommonParameters>]

Description

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.

Related Commands

Parameters

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.

EXAMPLE 1

Set-ServiceDacl -Name 'Hyperdrive' -Dacl $dacl

Replaces the DACL on the Hyperdrive service. Yikes! Sounds like something the Empire would do, though.