2021-01-01から1年間の記事一覧

【PowerShell】Microsoft 365管理 ~連絡先~

連絡先編集のメモ 記載がないAll Groupsグループ(チーム)一覧 ((Alias -ne `$null) -and (RecipientTypeDetailsValue -eq 'GroupMailbox'))記載がないOffline Global Address Listオフライン グローバル アドレス一覧 ((Alias -ne `$null) -and (((((((((((O…

【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>…

【PowerShell】Microsoft 365管理 ~予定表の共有管理~

社員の予定表の共有とアクセス許可を変更したい 既定だと「自分の予定が入っている時間~」=”予定あり”表示で意味が分からないので一括で「タイトルと場所を閲覧可能」に変更 Set-MailboxFolderPermission -Identity "<UPN>:\予定表" -User "既定" -AccessRights</upn>…

【PowerShell】Microsoft 365管理 ~Viva コネクション編~

Viva コネクション概要 techcommunity.microsoft.com Viva コネクション準備 docs.microsoft.com#とりあえずルートサイトをホームサイトして登録 Set-SPOHomeSite -HomeSiteUrl https://☓☓☓.sharepoint.com

【PowerShell】Microsoft 365管理 ~GAL編~

Microsoft 365 グループを作るとグループアドレスが量産されていくので非表示 #基本のコマンドレット Set-UnifiedGroup -Identity <DisplayName> -HiddenFromAddressListsEnabled $true#まとめて実行 Get-UnifiedGroup | Select-Object DisplayName,PrimarySmtpAddress | </displayname>…

【PowerShell】Microsoft 365管理 ~おまじない編~

#Teams $UserCredential = Get-Credential Import-Module MicrosoftTeams Connect-MicrosoftTeams -Credential $UserCredential #SharePoint接続 $UserCredential = Get-Credential Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameCheck…