Skip to content

Instantly share code, notes, and snippets.

コマンド)
Get-RecipientPermission -Identity "<該当グループのメール アドレス>" | Select Identity,Trustee,AccessRights
例)
Get-RecipientPermission -Identity "MLGroup@contoso.com" | Select Identity,Trustee,AccessRights
コマンド)
Add-RecipientPermission -Identity <該当グループのメール アドレス> -AccessRights SendAs -Trustee <権限を付与するユーザーのメール アドレス> -Confirm: $False
例)
Add-RecipientPermission -Identity MLGroup@domain.com -AccessRights SendAs -Trustee UserAcount@domain.com -Confirm:$False
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
<実行するコマンド>
Import-Module AzureADPreview;
Connect-AzureAD;
$template = Get-AzureADDirectorySettingTemplate -Id 62375ab9-6b52-47ed-826b-58e47e0e304b;
$setting = $template.CreateDirectorySetting();
$setting["EnableGroupCreation"] = $false; New-AzureADDirectorySetting -DirectorySetting $setting;
(Get-AzureADDirectorySetting).Values
<出力例>
Name Value
---- -----
CustomBlockedWordsList
EnableMSStandardBlockedWords False
ClassificationDescriptions
DefaultClassification
PrefixSuffixNamingRequirement
Azure AD に接続
Import-Module AzureADPreview
Connect-AzureAD
◆ Skype for Business Online の先進認証について
【先進認証の設定状況を確認するコマンド】
<コマンド>
Get-CsOAuthConfiguration | fl ClientAdalAuthOverride
<実行結果例>
ClientAdalAuthOverride : Disallowed
<説明>
Skype for Business Online 側の先進認証が有効である場合には Allowed、無効である場合には Disallowed が返されます。
【先進認証を有効にする】
<コマンド>
@Josh00
Josh00 / ADAL exchange
Last active December 11, 2018 11:50
ADAL
◆ Exchange Online の先進認証について
【先進認証の設定状況を確認するコマンド】
Get-OrganizationConfig | fl OAuth2ClientProfileEnabled
<実行結果例>
OAuth2ClientProfileEnabled : False
【先進認証を有効にする】
Set-OrganizationConfig -OAuth2ClientProfileEnabled $true
diskpart
DISKPART>
DISKPART>list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ---- ---------- ------- --------- --------
Volume 0 C OS NTFS Partition 236 GB 正常 ブート
Volume 1 WINRETOOLS NTFS Partition 990 MB 正常
Volume 2 ESP FAT32 Partition 550 MB 正常 システム
 Volume 3 E NTFS Partition 457 MB 正常
DISKPART>select volume 3