Description

 keeps a list of problems: Current issues with Microsoft Exchange ActiveSync and third-party devices

After some problems at a customer i looked deeper at these problems.
Most problems come’s with iOS devices (iPhone and iPad)

Sow I made a list of al iOS versions (6,7 and 8) and there problems.

For more information, please see: http://www.wardvissers.nl/2014/12/09/block-ios-devices-with-block-ios-devices-ps1-script/

Script

 

 

PowerShell
Edit|Remove
"****************************************************************" 
"* Block-IOS-Devices.ps1 created by Ward Vissers                *" 
"* www.wardvissers.nl                                           *" 
"*                                                              *" 
"* This Script Blocks iOS devices                               *" 
"* That gives problems with                                     *" 
"* Exchange 2007/2010/2013 and Office 365                       *" 
"*                                                              *"                            
"* Current issues with Microsoft Exchange                       *" 
"* ActiveSync and third-party devices                           *" 
"* http://support.microsoft.com/kb/2563324                      *" 
"*                                                              *" 
"*   Please Select the Choice You Want                          *" 
"*                                                              *" 
"*                                                              *" 
"* 1) Block iOS 6.1 and 6.1.1 Devices (KB2814847)               *" 
"* 2) Block iOS 7.0.4 and 7.1.2 Devices (KB3015401)             *" 
"* 3) Block iOS 8.0.1 and 8.0.2 and 8.1 Devices (KB3015401)     *" 
"* 4) Block iOS 6.1,6.1.1,7.0.4,7.1.2,8.0.1,8.0.2,8.1 Devices   *" 
"* 5) Exit                                                      *" 
"*                                                              *" 
"*                                                              *" 
"****************************************************************" 
$a=read-host 
IF ($a-eq 1) 
{ 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B141" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B142" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B143" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B144" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1.1 10B145" -characteristic DeviceOS -accesslevel block 
} 
ElseIf ($a-eq 2)   
{ 
New-ActiveSyncDeviceAccessRule -querystring "iOS 7.0.4 11B554a" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 7.1.2 11D257" -characteristic DeviceOS -accesslevel block 
} 
ElseIf ($a-eq 3)   
{ 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.0.1 12A402" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.0.2 12A405" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.1 12B410" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.1 12B411" -characteristic DeviceOS -accesslevel block 
} 
ElseIf ($a-eq 4)   
{ 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B141" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B142" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B143" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1 10B144" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 6.1.1 10B145" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 7.0.4 11B554a" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 7.1.2 11D257" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.0.1 12A402" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.0.2 12A405" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.1 12B410" -characteristic DeviceOS -accesslevel block 
New-ActiveSyncDeviceAccessRule -querystring "iOS 8.1 12B411" -characteristic DeviceOS -accesslevel block 
} 
ElseIf ($a-eq 5)  {exit}