< Back
Disable-Access
Post
NAME Disable-Access
SYNOPSIS
Deny student group permission to a file.
SYNTAX
Disable-Access [[-Path] <String[]>] [[-Identity] <String>] [<CommonParameters>]
DESCRIPTION
Add an NTFS Deny ACL to a given file for students to block their access.
A deny rule supercedes any allow rule.
PARAMETERS
-Path <String[]>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Identity <String>
AD identity
Required? false
Position? 2
Default value AllStudents
Accept pipeline input? true (ByPropertyName)
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:\\>\\\\<server\\<share>\\<Path> | Disable-Access | Convertto-html | Out-File "Report.html"
Generate a report that lists the files students have been blocked from using.
RELATED LINKS
SYNOPSIS
Deny student group permission to a file.
SYNTAX
Disable-Access [[-Path] <String[]>] [[-Identity] <String>] [<CommonParameters>]
DESCRIPTION
Add an NTFS Deny ACL to a given file for students to block their access.
A deny rule supercedes any allow rule.
PARAMETERS
-Path <String[]>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Identity <String>
AD identity
Required? false
Position? 2
Default value AllStudents
Accept pipeline input? true (ByPropertyName)
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:\\>\\\\<server\\<share>\\<Path> | Disable-Access | Convertto-html | Out-File "Report.html"
Generate a report that lists the files students have been blocked from using.
RELATED LINKS