< Back
Set-CServiceAcl
Post
NAME Set-CServiceAcl
SYNOPSIS
Sets a service's discretionary access control list (i.e. DACL).
SYNTAX
Set-CServiceAcl [-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-CServicePermission` or `Revoke-CServicePermission` instead.
PARAMETERS
-Name <String>
The service whose DACL to replace.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Dacl <DiscretionaryAcl>
The service's new DACL.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-ServiceDacl -Name 'Hyperdrive' -Dacl $dacl
Replaces the DACL on the `Hyperdrive` service. Yikes! Sounds like something the Empire would do, though.
RELATED LINKS
Get-CServicePermission
Grant-CServicePermission
Revoke-CServicePermission
SYNOPSIS
Sets a service's discretionary access control list (i.e. DACL).
SYNTAX
Set-CServiceAcl [-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-CServicePermission` or `Revoke-CServicePermission` instead.
PARAMETERS
-Name <String>
The service whose DACL to replace.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Dacl <DiscretionaryAcl>
The service's new DACL.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-ServiceDacl -Name 'Hyperdrive' -Dacl $dacl
Replaces the DACL on the `Hyperdrive` service. Yikes! Sounds like something the Empire would do, though.
RELATED LINKS
Get-CServicePermission
Grant-CServicePermission
Revoke-CServicePermission