How to create device based Azure AD group with OSType and OSVersion using powershell for intune

Friend of mine had asked for help to create device based dynamic group with deviceOSType=iOS ,and deviceOSversion less than 12.4.1. The reason for this group was to limit anything below iOS 12.4.1 for iPhone devices and MDM managed devices only to have a collection. So that ,we can exclude them from VPN to restrict users…
SCCM Configmgr 2012 Powershell script How to delete multiple packages applications Driver packages what else ?

Long Ago,wrote a powershell script to add packages,applications,driver packages,Boot Images etc to selected Distribution Points,more information http://eskonr.com/2014/02/configmgr-2012-updated-powershell-script-add-packages-applications-drivers-to-distribution-point/ As Configmgr admin,we will be doing some maintenance cleanup activities monthly or quarterly for applications,packages,drivers ,collection etc.I will write another post  on ,how to identify the packages which are not used from longer period by Configmgr clients. Removing…