グループ関連 » 履歴 » バージョン 1
蒲池 晃, 2021/08/23 12:04
| 1 | 1 | 蒲池 晃 | h1. グループ関連 |
|---|---|---|---|
| 2 | 1 | 蒲池 晃 | |
| 3 | 1 | 蒲池 晃 | グループの一覧作成 |
| 4 | 1 | 蒲池 晃 | <pre> |
| 5 | 1 | 蒲池 晃 | $Temp = foreach ($i in Get-DistributionGroup -ResultSize Unlimited){Get-DistributionGroupMember -Identity $i.PrimarySmtpAddress -ResultSize Unlimited | select @{n="Name";e={$i.Name}},@{n="DistributionGroupName";e={$i.DisplayName}},@{n="Alias";e={$i.Alias}},@{n="DistributionGroupMailAddress";e={$i.PrimarySmtpAddress}},@{n="GroupType";e={$i.GroupType}},@{n="ManagedBy";e={$i.ManagedBy}},@{n="HiddenFromAddressListsEnabled";e={$i.HiddenFromAddressListsEnabled}},DisplayName,PrimarySmtpAddress} |
| 6 | 1 | 蒲池 晃 | </pre> |
| 7 | 1 | 蒲池 晃 | <pre> |
| 8 | 1 | 蒲池 晃 | $Temp | Export-Csv -Encoding UTF8 -NoTypeInformation -Path "C:\hogehoge\output.csv" |
| 9 | 1 | 蒲池 晃 | </pre> |
| 10 | 1 | 蒲池 晃 | |
| 11 | 1 | 蒲池 晃 | グループメンバーの追加 |
| 12 | 1 | 蒲池 晃 | <pre> |
| 13 | 1 | 蒲池 晃 | Add-DistributionGroupMember -Identity all@ait-partner.co.jp -Member akamachi@ait-partner.co.jp |
| 14 | 1 | 蒲池 晃 | </pre> |