Site Tools


informatique:windows:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
informatique:windows:powershell [2025/05/12 14:20] yahikoinformatique:windows:powershell [2025/05/12 15:05] (current) yahiko
Line 142: Line 142:
 <code powershell> <code powershell>
 Get-ADGroupMember -Identity "Communication" | Format-Table Name, DistinguishedName Get-ADGroupMember -Identity "Communication" | Format-Table Name, DistinguishedName
 +</code>
 +
 +===== Vérifier les droits NTFS d'un dossier =====
 +
 +Non récursif.
 +
 +<code powershell>
 +Get-NTFSAccess 'D:\DATA\partages\dossier'
 +
 +    Path: D:\DATA\partages\dossier (Inheritance enabled)
 +
 +
 +Account                             Access Rights  Applies to                Type           IsInherited   InheritedFrom
 +-------                             -------------  ----------                ----           -----------   -------------
 +BUILTIN\Administrateurs             FullControl    ThisFolderOnly            Allow          False
 +BUILTIN\Administrateurs             FullControl    ThisFolderSubfoldersAn... Allow          True          D:
 +AUTORITE NT\Système                 FullControl    ThisFolderSubfoldersAn... Allow          True          D:
 +CREATEUR PROPRIETAIRE               GenericAll     SubfoldersAndFilesOnly    Allow          True          D:
 +BUILTIN\Utilisateurs                ReadAndExec... ThisFolderSubfoldersAn... Allow          True          D:
 +BUILTIN\Utilisateurs                CreateDirec... ThisFolderAndSubfolders   Allow          True          D:
 +BUILTIN\Utilisateurs                CreateFiles    ThisFolderAndSubfolders   Allow          True          D:
 </code> </code>
  
  
informatique/windows/powershell.txt · Last modified: 2025/05/12 15:05 by yahiko