< Back
Add-Access
Post
NAME Add-Access
SYNOPSIS
Add "Allow" permission to target path.
SYNTAX
Add-Access [[-Path] <String[]>] [[-Identity] <String>] [-Access <String>] [-Inherit <String>] [<CommonParameters>]
DESCRIPTION
Add the NTFS Allow ACL for a given item for students access.
Any deny rule will supercede this. See Enable-Access.
PARAMETERS
-Path <String[]>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Identity <String>
AD identity to grant access
Required? false
Position? 2
Default value AllStudents
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Access <String>
keyword access permission levels
Required? false
Position? named
Default value ReadAndExecute
Accept pipeline input? false
Accept wildcard characters? false
-Inherit <String>
Sets the Applies to contition for child items
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:\\>Add-Access .\\en-US\\
By default allow students to read permission to the folder
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-Access .\\en-US\\ -Identity '2016 Students'
Specify the Active Directory identiy name to set access for;
Directory: N:\\Documents\\src\\ps-helper
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 19/10/2016 15:33 en-US
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>\\\\<server\\<share>\\<Path> | Add-Access | Convertto-html | Out-File "Report.html"
Generate a report that lists the items students have been allowed to aceess.
RELATED LINKS
SYNOPSIS
Add "Allow" permission to target path.
SYNTAX
Add-Access [[-Path] <String[]>] [[-Identity] <String>] [-Access <String>] [-Inherit <String>] [<CommonParameters>]
DESCRIPTION
Add the NTFS Allow ACL for a given item for students access.
Any deny rule will supercede this. See Enable-Access.
PARAMETERS
-Path <String[]>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Identity <String>
AD identity to grant access
Required? false
Position? 2
Default value AllStudents
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Access <String>
keyword access permission levels
Required? false
Position? named
Default value ReadAndExecute
Accept pipeline input? false
Accept wildcard characters? false
-Inherit <String>
Sets the Applies to contition for child items
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:\\>Add-Access .\\en-US\\
By default allow students to read permission to the folder
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-Access .\\en-US\\ -Identity '2016 Students'
Specify the Active Directory identiy name to set access for;
Directory: N:\\Documents\\src\\ps-helper
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 19/10/2016 15:33 en-US
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>\\\\<server\\<share>\\<Path> | Add-Access | Convertto-html | Out-File "Report.html"
Generate a report that lists the items students have been allowed to aceess.
RELATED LINKS