Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Clear-NTFSAccess.md 2.6 KiB

4 lat temu
3 lat temu
4 lat temu
4 lat temu
4 lat temu
4 lat temu
3 lat temu
4 lat temu
3 lat temu
4 lat temu
3 lat temu
4 lat temu
3 lat temu
4 lat temu
3 lat temu
4 lat temu
4 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ---
  2. external help file: NTFSSecurity.dll-Help.xml
  3. Module Name: ntfssecurity
  4. online version:
  5. schema: 2.0.0
  6. ---
  7. # Clear-NTFSAccess
  8. ## SYNOPSIS
  9. Removes all access control entries from a file or folder.
  10. ## SYNTAX
  11. ### Path (Default)
  12. ```
  13. Clear-NTFSAccess [-Path] <String[]> [-DisableInheritance] [<CommonParameters>]
  14. ```
  15. ### SD
  16. ```
  17. Clear-NTFSAccess [-SecurityDescriptor] <FileSystemSecurity2[]> [-DisableInheritance] [<CommonParameters>]
  18. ```
  19. ## DESCRIPTION
  20. {{ Fill in the Description }}
  21. ## EXAMPLES
  22. ### Example 1
  23. ```PowerShell
  24. PS C:\> Clear-NTFSAccess -Path C:\Data\ -DisableInheritance
  25. ```
  26. The above example would remove all access control entries from the folder C:\Data and disable inheritance on the folder as well.
  27. ## PARAMETERS
  28. ### -DisableInheritance
  29. The DisableInheritance parameter defines if you would like to didable the inheritance on the file or folder when clearing permissions.
  30. ```yaml
  31. Type: SwitchParameter
  32. Parameter Sets: (All)
  33. Aliases:
  34. Required: False
  35. Position: Named
  36. Default value: None
  37. Accept pipeline input: False
  38. Accept wildcard characters: False
  39. ```
  40. ### -Path
  41. The Path parameter defines where the file or container exists to remove the access control entries from.
  42. ```yaml
  43. Type: String[]
  44. Parameter Sets: Path
  45. Aliases: FullName
  46. Required: True
  47. Position: 1
  48. Default value: None
  49. Accept pipeline input: True (ByPropertyName, ByValue)
  50. Accept wildcard characters: False
  51. ```
  52. ### -SecurityDescriptor
  53. The SecurityDescriptor parameter allows passing an security descriptor or an array or security descriptors.
  54. 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.
  55. ```yaml
  56. Type: FileSystemSecurity2[]
  57. Parameter Sets: SD
  58. Aliases:
  59. Required: True
  60. Position: 1
  61. Default value: None
  62. Accept pipeline input: True (ByPropertyName, ByValue)
  63. Accept wildcard characters: False
  64. ```
  65. ### CommonParameters
  66. 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).
  67. ## INPUTS
  68. ### System.String[]
  69. ### Security2.FileSystemSecurity2[]
  70. ## OUTPUTS
  71. ### System.Object
  72. ## NOTES
  73. ## RELATED LINKS