This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatique:windows:powershell [2025/01/13 15:18] – yahiko | informatique:windows:powershell [2025/05/12 15:05] (current) – yahiko | ||
---|---|---|---|
Line 131: | Line 131: | ||
# Un apostrophe | # Un apostrophe | ||
$string = $string -replace "'","" | $string = $string -replace "'","" | ||
+ | </ | ||
+ | |||
+ | ===== Groupes AD ===== | ||
+ | ==== Lister les groupes d'une OU ==== | ||
+ | <code powershell> | ||
+ | Get-AdGroup -filter * -searchbase " | ||
+ | </ | ||
+ | |||
+ | ==== Lister les utilisateurs d'un groupe ==== | ||
+ | <code powershell> | ||
+ | Get-ADGroupMember -Identity " | ||
+ | </ | ||
+ | |||
+ | ===== Vérifier les droits NTFS d'un dossier ===== | ||
+ | |||
+ | Non récursif. | ||
+ | |||
+ | <code powershell> | ||
+ | Get-NTFSAccess ' | ||
+ | |||
+ | Path: D: | ||
+ | |||
+ | |||
+ | Account | ||
+ | ------- | ||
+ | BUILTIN\Administrateurs | ||
+ | BUILTIN\Administrateurs | ||
+ | AUTORITE NT\Système | ||
+ | CREATEUR PROPRIETAIRE | ||
+ | BUILTIN\Utilisateurs | ||
+ | BUILTIN\Utilisateurs | ||
+ | BUILTIN\Utilisateurs | ||
</ | </ | ||