通过Exchange导出公司员工使用的手机型号

网友投稿 631 2022-09-18

通过Exchange导出公司员工使用的手机型号

通过Exchange导出公司员工使用的手机型号

此脚本仅限于交流使用。如果用于生产环境中,请根据自己的需求进行修改

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 $m=New-Object System.Collections.arraylist #定义数组 $AllInfo=Get-MobileDevice |Select-Object DeviceModel,DeviceOS,DeviceType,UserDisplayName foreach ($info in $AllInfo){ if ($info.DeviceModel -ne "Outlook for iOS and Android" -and $info.DeviceOS -ne "OutlookBasicAuth" -and $info.DeviceModel -ne "MailMaster" -and $info.DeviceType -ne "WindowsMail" -and $info.DeviceType -ne "PC" -and $info.DeviceType -ne "Foxmail" -and $info.DeviceType -ne "WP8"){ $m.add($info)#往数组中添加对象 } }

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:16. 关键字:make 和 new 的区别?(16:9的图片尺寸)
下一篇:PowerShell导出所有DNS记录
相关文章

 发表评论

暂时没有评论,来抢沙发吧~