Exchange Online に以下のPowerShellコマンドで接続実行しました。
Set-ExecutionPolicy RemoteSigned
$password = Get-Content c:\bat\ex\Admin.pass | ConvertTo-SecureString
$LiveCred = New-Object System.Management.Automation.PSCredential "xxxx@yyyy.onmicrosoft.com",$password
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
$f = "d:\PFdata\" + (Get-Date).ToString("yyyyMMdd_HHmmss") + ".txt"
Get-PublicFolder -Recurse |ForEach-Object { Get-PublicFolderClientPermission $_.Identity } | FL Identity,user,AccessRights | Out-File $f -Width 120
実行結果
Identity : \xxxxxx\xxxxxx\xxxxxx
User : yyyyy
AccessRights : {ReadItems, CreateItems, EditOwnedItems, EditAllItems...}
のように、AccessRight が70文字までしか表示されません。
一行70文字以上の文字列を表示させるにはどうしたらよいででしょうか?ご教授ください。
I LOVE WEB APPLICATION!