Список мобильных устройств
ИТОГ Identity для удаления
Get-Mailbox -ResultSize Unlimited | ForEach {
$user = $_.name
Get-MobileDeviceStatistics -Mailbox:$_.Identity |
Select-Object @{label="User" ; expression={$user}},DeviceOS, lastsuccesssync, DeviceID, Identity
} | export-csv F:\PS\MobileRIDy.csv -NoType -UseCulture -Encoding UTF8
Get-Mailbox -ResultSize Unlimited | ForEach {
$user = $_.name
Get-MobileDeviceStatistics -Mailbox:$_.Identity |
Select-Object @{label="User" ; expression={$user}}, DeviceOS, FirstSyncTime, lastsuccesssync, DeviceID, Identity
} | export-csv F:\PS\MobileRIDyE4.csv -NoType -UseCulture -Encoding UTF8
Get-Mailbox -ResultSize Unlimited | ForEach {
$user = $_.name
Get-MobileDeviceStatistics -Mailbox:$_.Identity |
Select-Object @{label="User" ; expression={$user}},DeviceOS, lastsuccesssync
} | export-csv F:\PS\MobileR.csv -NoType -UseCulture -Encoding UTF8
Get-MobileDevice -ResultSize Unlimited | Select-Object @{Name="User"; Expression={($_.UserDisplayName).Split('/')[-1]}},DeviceModel,LastSuccessSync | Sort-Object User | Out-File "F:\Group_Control\Mobile5.txt"
Get-MobileDevice -ResultSize Unlimited | Select-Object @{Name="User"; Expression={($_.UserDisplayName).Split('/')[-1]}},DeviceModel,WhenChanged | Sort-Object User
Get-MobileDevice | Select-Object FriendlyName, DeviceID, DeviceOS, DeviceType, DeviceModel, UserDisplayName, DeviceAccessState | FL
Get-MobileDevice | Select-Object UserDisplayName, LastSuccessSync | FL
$mailboxes = Get-Mailbox -ResultSize Unlimited $report1 = @() $report2 = @() Foreach ($mb in $mailboxes) { $report2 = Get-MobileDeviceStatistics -Mailbox:$mb.Identity | Select-Object @{label=”User” ; expression={$mb.PrimarySmtpAddress }},DeviceModel,DeviceOS, lastsuccesssync $report1+=$report2 } $report1| Export-csv F:\Group_Control\Mobile5.csv
Get-MobileDeviceStatistics
Get-Mailbox -ResultSize:Unlimited | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | Where {$_.LastSuccessSync -gt '05/05/2021'} | Export-csv F:\Group_Control\Mobile7.csv
Get-Mailbox -ResultSize:Unlimited | ForEach {Get-MobileDeviceStatistics -Mailbox:$_.Identity} | Where {$_.LastSuccessSync -gt '05/05/2021'} | Export-csv F:\Group_Control\Mobile7.csv
Комментарии
Отправить комментарий