Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Add-NTFSAudit.md 5.2 KiB

há 5 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. ---
  2. external help file: NTFSSecurity.dll-Help.xml
  3. Module Name: ntfssecurity
  4. online version:
  5. schema: 2.0.0
  6. ---
  7. # Add-NTFSAudit
  8. ## SYNOPSIS
  9. {{ Fill in the Synopsis }}
  10. ## SYNTAX
  11. ### PathComplex (Default)
  12. ```
  13. Add-NTFSAudit [-Path] <String[]> [-Account] <IdentityReference2[]> [-AccessRights] <FileSystemRights2>
  14. [-AuditFlags <AuditFlags>] [-InheritanceFlags <InheritanceFlags>] [-PropagationFlags <PropagationFlags>]
  15. [-PassThru] [<CommonParameters>]
  16. ```
  17. ### PathSimple
  18. ```
  19. Add-NTFSAudit [-Path] <String[]> [-Account] <IdentityReference2[]> [-AccessRights] <FileSystemRights2>
  20. [-AuditFlags <AuditFlags>] [-AppliesTo <ApplyTo>] [-PassThru] [<CommonParameters>]
  21. ```
  22. ### SDSimple
  23. ```
  24. Add-NTFSAudit [-SecurityDescriptor] <FileSystemSecurity2[]> [-Account] <IdentityReference2[]>
  25. [-AccessRights] <FileSystemRights2> [-AuditFlags <AuditFlags>] [-AppliesTo <ApplyTo>] [-PassThru]
  26. [<CommonParameters>]
  27. ```
  28. ### SDComplex
  29. ```
  30. Add-NTFSAudit [-SecurityDescriptor] <FileSystemSecurity2[]> [-Account] <IdentityReference2[]>
  31. [-AccessRights] <FileSystemRights2> [-AuditFlags <AuditFlags>] [-InheritanceFlags <InheritanceFlags>]
  32. [-PropagationFlags <PropagationFlags>] [-PassThru] [<CommonParameters>]
  33. ```
  34. ## DESCRIPTION
  35. {{ Fill in the Description }}
  36. ## EXAMPLES
  37. ### Example 1
  38. ```powershell
  39. PS C:\> {{ Add example code here }}
  40. ```
  41. {{ Add example description here }}
  42. ## PARAMETERS
  43. ### -AccessRights
  44. {{ Fill AccessRights Description }}
  45. ```yaml
  46. Type: FileSystemRights2
  47. Parameter Sets: (All)
  48. Aliases: FileSystemRights
  49. Accepted values: None, ReadData, ListDirectory, WriteData, CreateFiles, AppendData, CreateDirectories, ReadExtendedAttributes, WriteExtendedAttributes, ExecuteFile, Traverse, DeleteSubdirectoriesAndFiles, ReadAttributes, WriteAttributes, Write, Delete, ReadPermissions, Read, ReadAndExecute, Modify, ChangePermissions, TakeOwnership, Synchronize, FullControl, GenericAll, GenericExecute, GenericWrite, GenericRead
  50. Required: True
  51. Position: 2
  52. Default value: None
  53. Accept pipeline input: True (ByPropertyName)
  54. Accept wildcard characters: False
  55. ```
  56. ### -Account
  57. {{ Fill Account Description }}
  58. ```yaml
  59. Type: IdentityReference2[]
  60. Parameter Sets: (All)
  61. Aliases: IdentityReference, ID
  62. Required: True
  63. Position: 2
  64. Default value: None
  65. Accept pipeline input: True (ByPropertyName)
  66. Accept wildcard characters: False
  67. ```
  68. ### -AppliesTo
  69. {{ Fill AppliesTo Description }}
  70. ```yaml
  71. Type: ApplyTo
  72. Parameter Sets: PathSimple, SDSimple
  73. Aliases:
  74. Accepted values: ThisFolderOnly, ThisFolderSubfoldersAndFiles, ThisFolderAndSubfolders, ThisFolderAndFiles, SubfoldersAndFilesOnly, SubfoldersOnly, FilesOnly, ThisFolderSubfoldersAndFilesOneLevel, ThisFolderAndSubfoldersOneLevel, ThisFolderAndFilesOneLevel, SubfoldersAndFilesOnlyOneLevel, SubfoldersOnlyOneLevel, FilesOnlyOneLevel
  75. Required: False
  76. Position: Named
  77. Default value: None
  78. Accept pipeline input: True (ByPropertyName)
  79. Accept wildcard characters: False
  80. ```
  81. ### -AuditFlags
  82. {{ Fill AuditFlags Description }}
  83. ```yaml
  84. Type: AuditFlags
  85. Parameter Sets: (All)
  86. Aliases:
  87. Accepted values: None, Success, Failure
  88. Required: False
  89. Position: Named
  90. Default value: None
  91. Accept pipeline input: True (ByPropertyName)
  92. Accept wildcard characters: False
  93. ```
  94. ### -InheritanceFlags
  95. {{ Fill InheritanceFlags Description }}
  96. ```yaml
  97. Type: InheritanceFlags
  98. Parameter Sets: PathComplex, SDComplex
  99. Aliases:
  100. Accepted values: None, ContainerInherit, ObjectInherit
  101. Required: False
  102. Position: Named
  103. Default value: None
  104. Accept pipeline input: True (ByPropertyName)
  105. Accept wildcard characters: False
  106. ```
  107. ### -PassThru
  108. {{ Fill PassThru Description }}
  109. ```yaml
  110. Type: SwitchParameter
  111. Parameter Sets: (All)
  112. Aliases:
  113. Required: False
  114. Position: Named
  115. Default value: None
  116. Accept pipeline input: False
  117. Accept wildcard characters: False
  118. ```
  119. ### -Path
  120. {{ Fill Path Description }}
  121. ```yaml
  122. Type: String[]
  123. Parameter Sets: PathComplex, PathSimple
  124. Aliases: FullName
  125. Required: True
  126. Position: 1
  127. Default value: None
  128. Accept pipeline input: True (ByPropertyName, ByValue)
  129. Accept wildcard characters: False
  130. ```
  131. ### -PropagationFlags
  132. {{ Fill PropagationFlags Description }}
  133. ```yaml
  134. Type: PropagationFlags
  135. Parameter Sets: PathComplex, SDComplex
  136. Aliases:
  137. Accepted values: None, NoPropagateInherit, InheritOnly
  138. Required: False
  139. Position: Named
  140. Default value: None
  141. Accept pipeline input: True (ByPropertyName)
  142. Accept wildcard characters: False
  143. ```
  144. ### -SecurityDescriptor
  145. {{ Fill SecurityDescriptor Description }}
  146. ```yaml
  147. Type: FileSystemSecurity2[]
  148. Parameter Sets: SDSimple, SDComplex
  149. Aliases:
  150. Required: True
  151. Position: 1
  152. Default value: None
  153. Accept pipeline input: True (ByPropertyName, ByValue)
  154. Accept wildcard characters: False
  155. ```
  156. ### CommonParameters
  157. This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
  158. ## INPUTS
  159. ### System.String[]
  160. ### Security2.FileSystemSecurity2[]
  161. ### Security2.IdentityReference2[]
  162. ### Security2.FileSystemRights2
  163. ### System.Security.AccessControl.AuditFlags
  164. ### System.Security.AccessControl.InheritanceFlags
  165. ### System.Security.AccessControl.PropagationFlags
  166. ### Security2.ApplyTo
  167. ## OUTPUTS
  168. ### Security2.FileSystemAccessRule2
  169. ## NOTES
  170. ## RELATED LINKS