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 13:53] – yahiko | informatique:windows:powershell [2025/01/23 14:58] (current) – yahiko | ||
---|---|---|---|
Line 119: | Line 119: | ||
# En minuscule | # En minuscule | ||
CHAINE.ToLower() | CHAINE.ToLower() | ||
+ | </ | ||
+ | |||
+ | ===== Remplacer un caractère ou un espace ===== | ||
+ | |||
+ | C'est pas beau. | ||
+ | |||
+ | <code powershell> | ||
+ | # Un espace | ||
+ | $string = $string -replace " ","" | ||
+ | |||
+ | # Un apostrophe | ||
+ | $string = $string -replace "'","" | ||
+ | </ | ||
+ | |||
+ | ===== Lister les membres d'un groupe AD ===== | ||
+ | <code powershell> | ||
+ | Get-ADGroupMember -Identity " | ||
</ | </ | ||