いつも参考にさせていただいております。
現在、以下URLを参考にSharePoint Server 2016でサイトメールボックス用にSharePoint の構成をおこなっております。
URL:https://docs.microsoft.com/ja-jp/sharepoint/administration/configure-site-mailboxes-in-sharepoint
こちらに記載されている2つのスクリプト(Check-SiteMailboxConfig.ps1 / Set-SiteMailboxConfig.ps1)を同じ場所に置き、以下のコマンドを実行するとエラーになってしまいました。
======
実行コマンド:.\Set-SiteMailboxConfig.ps1 -ExchangeSiteMailboxDomain xxxx.com -ExchangeServer Exchange1.xxxx.com -ExchangeAutodiscoverDomain https://Exchange1.xxxx.com/autodiscover/metadata/json/1 -WebApplicationUrl https://sharepoint2
======
エラー内容:
発生場所 c:\users\administrator.xxxx\Desktop\sp\Set-SiteMailboxConfig.ps1:101文字:43
+...= & $script:currentDirectory\Check-SiteMailboxConfig.ps1 -Return...
+
式またはステートメントのトークン'\Check-SiteMailboxConfig.ps1' を使用できません。
+CategoryInfo :ParserError:(:) [] , ParseException
+FullyQualifiedErrorId :UnexpectedToken
======
記載されているコマンドのどこか変更する必要があるのかご教授いただけないでしょうか。
ご支援の程どうぞ宜しくお願いいたします。