问题: 用户ABC在每周五有900多重复的约会, 导致每逢周五电脑和手机都死机.
解决方法:
我们可以通过以下指令批量删除对应的会议日历。
1. 以管理员形式运行Windows Powershell,运行以下命令。
首次运行时候,请执行该命令加载签名脚本。
Set-ExecutionPolicy RemoteSigned
运行以下命令
$UserCredential = Get-Credential
输入上述命令后, 需要输入O365的admin账户和密码, 获取权限进行操作
2. 运行以下命令连接至ExchangeOnline
$Session = New-PSSession -ConfigurationNameMicrosoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic-AllowRedirection
3. 运行以下命令加载模块
Import-PSSession $Session
4. 运行以下命令批量删除会议日历:
条件1:用户邮箱是:ABC@O365.com
条件2:日历邀请来自:ABC@O365.com
条件3:日历标题为:DF weekly WIP statusupdate for YOL
Search-Mailbox-Identity ABC@O365.com -SearchQueryfrom:"ABC@O365.comkind:meetings", subject:"DF weekly WIP status update for YOL"-DeleteContent -Force
转载于:https://blog.51cto.com/dantekuang/1966298