【问题标题】:Bulk rename folders and subfolders with '/' in shared mailbox using powershell使用PowerShell批量重命名共享邮箱中带有“/”的文件夹和子文件夹
【发布时间】:2016-02-27 14:19:14
【问题描述】:

我正在使用 IMAP 将我的用户从他们的 iPhone 和 Android 平板电脑登录到我组织的共享 Office365 邮箱,因为我无法使用 Exchange ActiveSync 来允许这些用户从默认电子邮件应用程序/Outlook for iOS/Android 中读取共享收件箱(由 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/

【问题讨论】:

    标签: email powershell exchange-server office365


    【解决方案1】:

    共享邮箱如此重要又如此困难,是吗?我最近遇到了这个问题,微软支持人员告诉我,有一种不受支持的技术可以让共享邮箱在 iPhone 的电子邮件应用程序上工作。不过 imap 方法看起来不错。

    查看here 以避开正斜杠。

    这是我将 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
    

    【讨论】:

      猜你喜欢
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-04
      • 2015-12-03
      • 2017-07-25
      • 1970-01-01
      相关资源
      最近更新 更多