簡體   English   中英

使用Powershell在共享郵箱中使用'/'批量重命名文件夾和子文件夾

[英]Bulk rename folders and subfolders with '/' in shared mailbox using powershell

我使用IMAP從其iPhone和Android平板電腦上將用戶登錄到我組織的共享Office365郵箱,因為我無法使用Exchange ActiveSync允許這些用戶從默認電子郵件應用程序/ iOS / Android的Outlook中讀取共享的收件箱(由MSFT確認) )。

我的用戶開始收到有關郵箱中某些文件夾的電子郵件:

您的一個或多個文件夾的名稱包含字符“ /”或超過250個字符。 名稱包含此字符的文件夾不能下載到您的IMAP電子郵件程序中。 請重命名這些文件夾:

列出的文件夾都不超過250個字符。 它們都包含“ /”。 我對Powershell的語法不是很了解,但是正在嘗試改進。 是否可以使用Power-shell腳本重命名這些文件夾以及任何子文件夾來刪除/替換正斜杠? 請包括我需要用於遠程連接到O365的所有連接腳本。

這是我到目前為止所做的所有研究。 我本來打算明天做些事情,但我想我也應該給SO的優秀人才提供幫助。 感謝您的任何幫助,您可以提供!

 http://o365info.com/using-remote-powershell-to-manage_26 http://o365info.com/using-remote-powershell-to-manage_212 http://o365info.com/using-remote-powershell-to-manage_8596 http://o365info.com/shared-mailbox-powershell-commands http://superuser.com/questions/900874/bulk-folder-renaming-powershell-script http://powershell.org/wp/forums/topic/replace-special-characters/ http://blogs.microsoft.co.il/scriptfanatic/2011/08/15/exchange-removing-illegal-alias-characters-using-powershell/ 

共享郵箱是如此重要且如此困難,是嗎? 我最近遇到了這個問題,並且被Microsoft支持人員告知,沒有一種使Shared Mailboxes在iPhone的電子郵件應用程序上運行的技術。 imap方法看起來不錯。

這里逃脫正斜線。

這是我用於將Powershell連接到Office 365交換的模板。

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

# Exchange Mailbox commands go here e.g. $FixAutoMapping = Get-MailboxPermission sharedmailbox | where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false}

Remove-PSSession $Session

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM