Browse Source

updates

pull/78/head
James Smith 3 years ago
parent
commit
3029853e52
21 changed files with 121 additions and 40 deletions
  1. +29
    -14
      Docs/Cmdlets/Add-NTFSAudit.md
  2. +8
    -6
      Docs/Cmdlets/Clear-NTFSAccess.md
  3. +3
    -1
      Docs/Cmdlets/Clear-NTFSAudit.md
  4. +3
    -1
      Docs/Cmdlets/Disable-NTFSAccessInheritance.md
  5. +3
    -1
      Docs/Cmdlets/Disable-NTFSAuditInheritance.md
  6. +3
    -1
      Docs/Cmdlets/Enable-NTFSAccessInheritance.md
  7. +3
    -1
      Docs/Cmdlets/Enable-NTFSAuditInheritance.md
  8. +3
    -1
      Docs/Cmdlets/Get-NTFSAccess.md
  9. +3
    -1
      Docs/Cmdlets/Get-NTFSAudit.md
  10. +3
    -1
      Docs/Cmdlets/Get-NTFSEffectiveAccess.md
  11. +3
    -1
      Docs/Cmdlets/Get-NTFSInheritance.md
  12. +3
    -1
      Docs/Cmdlets/Get-NTFSOrphanedAccess.md
  13. +3
    -1
      Docs/Cmdlets/Get-NTFSOrphanedAudit.md
  14. +3
    -1
      Docs/Cmdlets/Get-NTFSOwner.md
  15. +3
    -1
      Docs/Cmdlets/Get-NTFSSimpleAccess.md
  16. +30
    -2
      Docs/Cmdlets/Get-Privileges.md
  17. +3
    -1
      Docs/Cmdlets/Remove-NTFSAccess.md
  18. +3
    -1
      Docs/Cmdlets/Remove-NTFSAudit.md
  19. +3
    -1
      Docs/Cmdlets/Set-NTFSInheritance.md
  20. +3
    -1
      Docs/Cmdlets/Set-NTFSOwner.md
  21. +3
    -1
      Docs/Cmdlets/Set-NTFSSecurityDescriptor.md

+ 29
- 14
Docs/Cmdlets/Add-NTFSAudit.md View File

@@ -9,7 +9,7 @@ schema: 2.0.0

## SYNOPSIS

Add auditing to a folder or files.
Add auditing to a folder or file.

## SYNTAX

@@ -42,23 +42,24 @@ Add-NTFSAudit [-SecurityDescriptor] <FileSystemSecurity2[]> [-Account] <Identity

## DESCRIPTION

{{ Fill in the Description }}
You can apply audit policies to individual files and folders on your computer by setting the permission type to record successful access attempts or failed access attempts in the security log.

To complete this procedure, you must be signed in as a member of the built-in Administrators group or have Manage auditing and security log rights.

## EXAMPLES

### Example 1

```PowerShell
PS C:\> {{ Add example code here }}
PS C:\> Add-NTFSAudit -Path C:\Data -Account 'NT AUTHORITY\Authenticated Users' -AcessRights generic All -AuditFlags Failure
```

{{ Add example description here }}

The above command adds auditing to the folder C:\Data on any failure.
## PARAMETERS

### -AccessRights

{{ Fill AccessRights Description }}
The AccessRights parameter designates the permissions to monitor or audit. There are individual permissions as well as 'basic' permissions. See the below table for how the basic permissions permissions map the the advanced permissions in the advanced security window.

```yaml
Type: FileSystemRights2
@@ -75,7 +76,7 @@ Accept wildcard characters: False

### -Account

{{ Fill Account Description }}
The Account parameter defines the account or group to apply the auditing to.

```yaml
Type: IdentityReference2[]
@@ -91,7 +92,7 @@ Accept wildcard characters: False

### -AppliesTo

{{ Fill AppliesTo Description }}
The AppliesTo parameter defines where the auditing will apply to and if there is any inheritance e.g "this folder only" or "this folder and subfolders".

```yaml
Type: ApplyTo
@@ -108,7 +109,7 @@ Accept wildcard characters: False

### -AuditFlags

{{ Fill AuditFlags Description }}
The AuditFlags parameter defines what types of events will be audited. If you would only like to audit denied access you would choose failure.

```yaml
Type: AuditFlags
@@ -125,7 +126,13 @@ Accept wildcard characters: False

### -InheritanceFlags

{{ Fill InheritanceFlags Description }}
The InheritanceFlags parameter defines the inheritance of the auditing.

ObjectInherit will apply the auditing to files and folders in the folder defined by the Path parameter.

ContainerInherit will apply the auditing to subfolders but not files.

There is more information on Microsoft Docs [here](https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ms229747(v=vs.100)?redirectedfrom=MSDN)

```yaml
Type: InheritanceFlags
@@ -142,7 +149,7 @@ Accept wildcard characters: False

### -PassThru

{{ Fill PassThru Description }}
The PassThru parameter will return the new auditing as a table. If the PassThru parameter is omitted, there is no information returned if the operation was successful.

```yaml
Type: SwitchParameter
@@ -158,7 +165,7 @@ Accept wildcard characters: False

### -Path

{{ Fill Path Description }}
The Path parameter defines where the file or container exists to apply the auditing to.

```yaml
Type: String[]
@@ -174,7 +181,13 @@ Accept wildcard characters: False

### -PropagationFlags

{{ Fill PropagationFlags Description }}
The PropagationFlags parameter defines how the auditing is propagated to child objects.

Inherit specifies that the auditing is propagated only to child objects. This includes both folder and file child objects.

NoPropagateInherit specifies that the auditing is not propagated to child objects.

None specifies that no inheritance flags are set.

```yaml
Type: PropagationFlags
@@ -191,7 +204,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 8
- 6
Docs/Cmdlets/Clear-NTFSAccess.md View File

@@ -9,7 +9,7 @@ schema: 2.0.0

## SYNOPSIS

{{ Fill in the Synopsis }}
Removes all access control entries from a file or folder.

## SYNTAX

@@ -32,16 +32,16 @@ Clear-NTFSAccess [-SecurityDescriptor] <FileSystemSecurity2[]> [-DisableInherita
### Example 1

```PowerShell
PS C:\> {{ Add example code here }}
PS C:\> Clear-NTFSAccess -Path C:\Data\ -DisableInheritance
```

{{ Add example description here }}
The above example would remove all access control entries from the folder C:\Data and disable inheritance on the folder as well.

## PARAMETERS

### -DisableInheritance

{{ Fill DisableInheritance Description }}
The DisableInheritance parameter defines if you would like to didable the inheritance on the file or folder when clearing permissions.

```yaml
Type: SwitchParameter
@@ -57,7 +57,7 @@ Accept wildcard characters: False

### -Path

{{ Fill Path Description }}
The Path parameter defines where the file or container exists to remove the access control entries from.

```yaml
Type: String[]
@@ -73,7 +73,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Clear-NTFSAudit.md View File

@@ -73,7 +73,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Disable-NTFSAccessInheritance.md View File

@@ -91,7 +91,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Disable-NTFSAuditInheritance.md View File

@@ -91,7 +91,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Enable-NTFSAccessInheritance.md View File

@@ -90,7 +90,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Enable-NTFSAuditInheritance.md View File

@@ -90,7 +90,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSAccess.md View File

@@ -107,7 +107,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSAudit.md View File

@@ -107,7 +107,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSEffectiveAccess.md View File

@@ -91,7 +91,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSInheritance.md View File

@@ -57,7 +57,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSOrphanedAccess.md View File

@@ -107,7 +107,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSOrphanedAudit.md View File

@@ -107,7 +107,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSOwner.md View File

@@ -57,7 +57,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Get-NTFSSimpleAccess.md View File

@@ -123,7 +123,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 30
- 2
Docs/Cmdlets/Get-Privileges.md View File

@@ -26,10 +26,38 @@ Get-Privileges [<CommonParameters>]
### Example 1

```PowerShell
PS C:\> {{ Add example code here }}
PS C:\> Get-Privileges

-------------------------------------------------------------------------
| Privilege | PrivilegeAttributes | PriviliegeState |
|-------------------------------|---------------------|-----------------|
| IncreaseQuota | Disabled | Disabled |
| Security | Enabled | Enabled |
| TakeOwnership | Enabled | Enabled |
| LoadDriver | Disabled | Disabled |
| SystemProfile | Disabled | Disabled |
| SystemTime | Disabled | Disabled |
| ProfileSingleProcess | Disabled | Disabled |
| IncreaseBasePriority | Disabled | Disabled |
| CreatePageFile | Disabled | Disabled |
| Backup | Enabled | Enabled |
| Restore | Enabled | Enabled |
| Shutdown | Disabled | Disabled |
| Debug | Enabled | Enabled |
| SystemEnvironment | Disabled | Disabled |
| ChangeNotify EnabledByDefault | Enabled | Enabled |
| RemoteShutdown | Disabled | Disabled |
| Undock | Disabled | Disabled |
| ManageVolume | Disabled | Disabled |
| Impersonate EnabledByDefault | Enabled | Enabled |
| CreateGlobal EnabledByDefault | Enabled | Enabled |
| IncreaseWorkingSet | Disabled | Disabled |
| TimeZone | Disabled | Disabled |
| CreateSymbolicLink | Disabled | Disabled |
-------------------------------------------------------------------------
```

{{ Add example description here }}
The above command gets the privliges.

## PARAMETERS



+ 3
- 1
Docs/Cmdlets/Remove-NTFSAccess.md View File

@@ -191,7 +191,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Remove-NTFSAudit.md View File

@@ -191,7 +191,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Set-NTFSInheritance.md View File

@@ -107,7 +107,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Set-NTFSOwner.md View File

@@ -90,7 +90,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


+ 3
- 1
Docs/Cmdlets/Set-NTFSSecurityDescriptor.md View File

@@ -51,7 +51,9 @@ Accept wildcard characters: False

### -SecurityDescriptor

{{ Fill SecurityDescriptor Description }}
The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.

A security descriptor contains information about the owner of the object, and the primary group of an object. The security descriptor also contains two access control lists (ACL). The first list is called the discretionary access control lists (DACL), and describes who should have access to an object and what type of access to grant. The second list is called the system access control lists (SACL) and defines what type of auditing to record for an object.

```yaml
Type: FileSystemSecurity2[]


Loading…
Cancel
Save