< Back
Remove-NsFilesystemAcl
Post
NAME Remove-NsFilesystemAcl
SYNOPSIS
Removes an acl from a file system
SYNTAX
Remove-NsFilesystemAcl [-Path] <String> [-Index] <Int32> [-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Removes an acl from a file system by index
PARAMETERS
-Path <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Index <Int32>
Required? true
Position? 2
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NoWait [<SwitchParameter>]
Invoke to make the cmdlet start the job ad return the JobID
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
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
The cmdlet will wait (30sec) for the task to complete and return the updated acls, unless -NoWait was invoked
If -NoWait was invoked the cmdlet will return the GUID of the update task
If the cmdlet waits for more than 30sec it will return the GUID of the task.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-FilesystemAcl -Path p2/top2 -Index 1 | ft
type principal permissions flags
index
---- --------- ----------- -----
-----
allow usersid:user1@local.domain {list_directory, read_data, read_xattr, execute...} {file_inherit,
dir_inherit} 0
allow groupsid:Administrators@BUILTIN {list_directory, read_data, add_file, write_data...} {file_inherit,
dir_inherit} 1
allow owner@ {list_directory, read_data, add_file, write_data...} {file_inherit,
dir_inherit} 3
Remove the acl at index 1
RELATED LINKS
SYNOPSIS
Removes an acl from a file system
SYNTAX
Remove-NsFilesystemAcl [-Path] <String> [-Index] <Int32> [-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Removes an acl from a file system by index
PARAMETERS
-Path <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Index <Int32>
Required? true
Position? 2
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NoWait [<SwitchParameter>]
Invoke to make the cmdlet start the job ad return the JobID
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
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
The cmdlet will wait (30sec) for the task to complete and return the updated acls, unless -NoWait was invoked
If -NoWait was invoked the cmdlet will return the GUID of the update task
If the cmdlet waits for more than 30sec it will return the GUID of the task.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-FilesystemAcl -Path p2/top2 -Index 1 | ft
type principal permissions flags
index
---- --------- ----------- -----
-----
allow usersid:user1@local.domain {list_directory, read_data, read_xattr, execute...} {file_inherit,
dir_inherit} 0
allow groupsid:Administrators@BUILTIN {list_directory, read_data, add_file, write_data...} {file_inherit,
dir_inherit} 1
allow owner@ {list_directory, read_data, add_file, write_data...} {file_inherit,
dir_inherit} 3
Remove the acl at index 1
RELATED LINKS