You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NTFSSecurity.psm1 2.4 KiB

7 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <#
  2. #Access cmdlets
  3. New-Alias -Name Get-Ace -Value Get-NTFSAccess -ErrorAction SilentlyContinue
  4. New-Alias -Name Get-Access -Value Get-NTFSAccess -ErrorAction SilentlyContinue
  5. New-Alias -Name Get-EffectiveAccess -Value Get-NTFSEffectiveAccess -ErrorAction SilentlyContinue
  6. New-Alias -Name Add-Ace -Value Add-NTFSAccess -ErrorAction SilentlyContinue
  7. New-Alias -Name Add-Access -Value Add-NTFSAccess -ErrorAction SilentlyContinue
  8. New-Alias -Name Remove-Ace -Value Remove-NTFSAccess -ErrorAction SilentlyContinue
  9. New-Alias -Name Remove-Access -Value Remove-NTFSAccess -ErrorAction SilentlyContinue
  10. New-Alias -Name Get-OrphanedAccess -Value Get-NTFSOrphanedAccess -ErrorAction SilentlyContinue
  11. New-Alias -Name Get-OrphanedAce -Value Get-NTFSOrphanedAccess -ErrorAction SilentlyContinue
  12. New-Alias -Name Get-AccessInheritance -Value Get-NTFSAccessInheritance -ErrorAction SilentlyContinue
  13. New-Alias -Name Enable-Inheritance -Value Enable-NTFSAccessInheritance -ErrorAction SilentlyContinue
  14. New-Alias -Name Enable-AccessInheritance -Value Enable-NTFSAccessInheritance -ErrorAction SilentlyContinue
  15. New-Alias -Name Disable-Inheritance -Value Disable-NTFSAccessInheritance -ErrorAction SilentlyContinue
  16. New-Alias -Name Disable-AccessInheritance -Value Disable-NTFSAccessInheritance -ErrorAction SilentlyContinue
  17. #Audit cmdlets
  18. New-Alias -Name Get-Audit -Value Get-NTFSAudit -ErrorAction SilentlyContinue
  19. New-Alias -Name Add-Audit -Value Add-NTFSAudit -ErrorAction SilentlyContinue
  20. New-Alias -Name Remove-Audit -Value Remove-NTFSAudit -ErrorAction SilentlyContinue
  21. New-Alias -Name Get-OrphanedAudit -Value Get-NTFSOrphanedAudit -ErrorAction SilentlyContinue
  22. New-Alias -Name Get-AuditInheritance -Value Get-NTFSAuditInheritance -ErrorAction SilentlyContinue
  23. New-Alias -Name Enable-AuditInheritance -Value Enable-NTFSAuditInheritance -ErrorAction SilentlyContinue
  24. New-Alias -Name Disable-AuditInheritance -Value Disable-NTFSAuditInheritance -ErrorAction SilentlyContinue
  25. #Owner cmdlets
  26. New-Alias -Name Get-Owner -Value Get-NTFSOwner -ErrorAction SilentlyContinue
  27. New-Alias -Name Set-Owner -Value Set-NTFSOwner -ErrorAction SilentlyContinue
  28. #>
  29. #Item cmdlets
  30. New-Alias -Name dir2 -Value Get-ChildItem2 -ErrorAction SilentlyContinue
  31. New-Alias -Name gi2 -Value Get-Item2 -ErrorAction SilentlyContinue
  32. New-Alias -Name rm2 -Value Remove-Item2 -ErrorAction SilentlyContinue
  33. New-Alias -Name del2 -Value Remove-Item2 -ErrorAction SilentlyContinue
  34. Export-ModuleMember -Alias * -Function * -Cmdlet *