Exchange Online Powershell V2 module 更新情報とGet-EXOMailbox確認
Exchange Online Powershell V2 moduleの更新
Exchange Online Powershell V2のcmdlet
- Get-EXOMailbox
- Get-EXORecipient
- Get-EXOCASMailbox
- Get-EXOMailboxPermission
- Get-EXORecipientPermission
- Get-EXOMailboxStatistics
- Get-EXOMailboxFolderStatistics
- Get-EXOMailboxFolderPermission
- Get-EXOMobileDeviceStatistics
更新情報
- 管理権限を付与された他テナントへの接続(ゲストとかで管理者指定されたときですかね)
- アイデンティティにname, aliasも指定できるようになった上で位置指定パラメーター化
- エラーハンドリングその他バグフィックス(修正内容はこちら)
アイデンティティが位置指定パラメーター化は地味に嬉しい、ちゃんとしたスクリプト書くときならともかく、毎日のちょっとした運用業務に毎回アイデンティティをパラメーター指定するのめんどいですからね。
Please note that using alias or name slows down the performance of V2 cmdlets and hence it is not recommended to use this option
EXO V2 moduleのGet-EXOMailboxを試す
- Import-Module ExchangeOnlineManagement
- Connect-ExchangeOnline
ここでクレデンシャルを正しく入力すると以下がコンソールに表示されます。
—————————————————————————-
We have released new management cmdlets which are faster and more reliable.
|————————————————————————–|
| Old Cmdlets | New/Reliable/Faster Cmdlets |
|————————————————————————–|
| Get-CASMailbox | Get-EXOCASMailbox |
| Get-Mailbox | Get-EXOMailbox |
| Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission |
| Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics |
| Get-MailboxPermission | Get-EXOMailboxPermission |
| Get-MailboxStatistics | Get-EXOMailboxStatistics |
| Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics |
| Get-Recipient | Get-EXORecipient |
| Get-RecipientPermission | Get-EXORecipientPermission |
|————————————————————————–|
To get additional information, run: Get-Help Connect-ExchangeOnline
Please send your feedback and suggestions to exocmdletpreview@service.microsoft.com
—————————————————————————-
ご丁寧に新旧の対応表を出してくれてますね。
PropertySets
Get-EXOMailbox name
- Propertiesパラメーターに欲しい属性名を渡す
- PropertySetsパラメーターを使う
- Alias
- DisplayName
- DistinguishedName
- EmailAddresses
- ExchangeVersion
- ExternalDirectoryObjectId
- Guid
- Id
- Name
- OrganizationId
- PrimarySmtpAddress
- RecipientType
- RecipientTypeDetails
- UserPrincipalName
全属性取得するには?
We highly discourage using the PropertySets parameter with the value All because it slows down the cmdlet and reduces reliability. Always use the PropertySets and Properties parameters to retrieve only the requires properties.Reference source: Properties and property sets in the EXO V2 module
コメント
コメントを投稿