From be8a6fe79a14ab6862c1db3f944aca1733b1ebe5 Mon Sep 17 00:00:00 2001 From: sup3rlativ3 Date: Thu, 24 Oct 2019 22:18:07 +1100 Subject: [PATCH] more examples --- Docs/Cmdlets/Add-NTFSAccess.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Docs/Cmdlets/Add-NTFSAccess.md b/Docs/Cmdlets/Add-NTFSAccess.md index 015835b..74b83a9 100644 --- a/Docs/Cmdlets/Add-NTFSAccess.md +++ b/Docs/Cmdlets/Add-NTFSAccess.md @@ -79,7 +79,23 @@ Adds an access control entry (ACE) to an object such as a file or folder. NTFSSe PS C:\> Add-NTFSAccess -Path C:\Data -Account 'NT AUTHORITY\Authenticated Users' -AccessRights Read ``` -The above command gives the read permissions to the built-in group of 'Authenticated users' +The above command gives the read permissions to the built-in group of 'Authenticated users'. + +### Example 2 + +```PowerShell +PS C:\> Add-NTFSAccess -Path C:\Data -Account 'Contoso\Domain Admins' -AccessRights Full +``` + +The above command gives full permissions to the domain administrators group in the contoso active directory. + +### Example 3 + +```PowerShell +PS C:\> Add-NTFSAccess -Path C:\Data -Account 'NT AUTHORITY\Authenticated Users' -AccessRights CreateFiles -AccessType Deny -AppliesTo ThisFolderOnly +``` + +The above command denies the the built-in group of 'Authenticated users' from creating files in this folder only. ## PARAMETERS