2021-08-01から1ヶ月間の記事一覧

【PowerShell】Microsoft 365管理 ~ユーザー追加~

ユーザー追加をする時の個人的メモ $UserCredential = Get-Credential Connect-MsolService -Credential $UserCredential Connect-AzureAD -Credential $UserCredential Connect-ExchangeOnline -Credential $UserCredential Get-MsolAccountSku $disabledpl…

【VBA】~番外編~

Dim wslist As Worksheet Dim result, s, e, time, i As Long Dim attached1 As String Dim outlookObj As Outlook.Application Dim mailItemObj As Outlook.mailItem Dim myattachments As Outlook.Attachments Private Declare PtrSafe Sub Sleep Lib "ker…

【PowerShell】Microsoft 365管理 ~DKIM編~

カスタムドメインを取得してExchangeOnlineを運用する際のTips カスタム ドメインで DKIM をメールに使用する方法 - Office 365 | Microsoft Docs 公式の翻訳 New-DkimSigningConfig -DomainName <domain> -Enabled $false #① Get-DkimSigningConfig -Identity <domain> | Fo</domain></domain>…

【PowerShell】Microsoft 365管理 ~Azure AD編~

とりあえず上司(マネージャー)の一覧を取得したい $list = @() $Users =Get-AzureADUser -All $true foreach( $User in $Users){ $Manager =Get-AzureADUserManager -ObjectId $User.ObjectID $list += [pscustomobject]@{User=$User.UserPrincipalName Ma…

【PowerShell】Microsoft 365管理 ~Teams編~

とりあえずTeamsに外部組織のユーザーをゲスト登録したい New-AzureADMSInvitation -InvitedUserDisplayName "<表示名>" -InvitedUserEmailAddress <UPN> -InviteRedirectURL "<チームへのリンクを取得>" -SendInvitationMessage $true Add-TeamUser -GroupId <グ</upn>…