{"id":1491,"date":"2021-09-21T11:59:50","date_gmt":"2021-09-21T15:59:50","guid":{"rendered":"https:\/\/www.briandeyo.us\/brd\/wp\/?p=1491"},"modified":"2021-09-21T12:02:09","modified_gmt":"2021-09-21T16:02:09","slug":"powershell-one-liner-to-find-out-what-ios-updates-are-available-for-mdm-managed-devices","status":"publish","type":"post","link":"https:\/\/www.briandeyo.us\/index.php\/2021\/09\/21\/powershell-one-liner-to-find-out-what-ios-updates-are-available-for-mdm-managed-devices\/","title":{"rendered":"PowerShell One-liner to find out what iOS updates are available for MDM-managed devices"},"content":{"rendered":"<p>Apple has continually enhanced their enterprise update paths over the last several years. The most recent change came with iOS 14.5 which allowed MDM administrators to send a custom command to that allows organizations to decide whether to stay on an older iOS Major version (iOS 14.x) or allow devices to access a newer major version (iOS 15). This custom command has many challenges to its adoption, and it the release of iOS 15 on 09\/20\/2021 was really the first time this could be tested in a production deployment.<\/p>\n<p>Although recommendationCadence is a fascinating subject, the purpose of this quick post is the PowerShell one-liner I identified to pull information to know when the update was made available to enterprises. Any simple up\/down monitor for a webpage could also track this information, I just happened to have a PS terminal open when I wanted to check this.<\/p>\n<pre style=\"padding-left: 40px;\">(Invoke-RestMethod https:\/\/gdmf.apple.com\/v2\/pmv).assetsets.ios<\/pre>\n<p>This command will produce a very simple list of what versions are available.<\/p>\n<pre style=\"padding-left: 80px;\">\r\nProductVersion PostingDate ExpirationDate SupportedDevices\r\n-------------- ----------- -------------- ----------------\r\n8.0 2021-09-20 2021-12-19 {Watch3,1, Watch3,2, Watch3,3, Watch\u2026\r\n15.0 2021-09-20 2021-12-19 {AppleTV11,1, AppleTV5,3, AppleTV6,2\u2026\r\n5.3.9 2021-09-13 2021-12-19 {Watch3,1, Watch3,2, Watch3,3, Watch\u2026\r\n7.6.2 2021-09-13 2021-12-19 {Watch3,1, Watch3,2, Watch3,3, Watch\u2026\r\n14.8 2021-09-13 2021-12-19 {iPad11,1, iPad11,2, iPad11,3, iPad1\u2026\r\n7.6.1 2021-07-29 2021-12-12 {Watch3,1, Watch3,2, Watch3,3, Watch\u2026\r\n14.7.1 2021-07-26 2021-12-19 {iPad11,1, iPad11,2, iPad11,3, iPad1\u2026\r\n14.7 2021-07-21 2021-10-24 {iPad11,1, iPad11,2, iPad11,3, iPad1\u2026\r\n14.7 2021-07-19 2021-12-19 {AppleTV11,1, AppleTV5,3, AppleTV6,2\u2026\r\n7.6 2021-07-19 2021-10-27 {Watch3,1, Watch3,2, Watch3,3, Watch\u2026\r\n14.7 2021-07-19 2021-10-24 {iPhone10,1, iPhone10,2, iPhone10,3,\u2026\r\n12.5.4 2021-06-21 2021-12-19 {iPad4,1, iPad4,2, iPad4,3, iPad4,4\u2026}\r\n14.6 2021-06-21 2021-10-19 {iPad11,1, iPad11,2, iPad11,3, iPad1\u2026\r\n14.6 2021-06-21 2021-10-17 {iPhone10,1, iPhone10,2, iPhone10,3,\u2026\r\n5.3.9 2021-05-24 2021-12-19 {Watch2,3, Watch2,4, Watch2,6, Watch\u2026\r\n6.3 2021-05-24 2021-12-19 {Watch2,3, Watch2,4, Watch2,6, Watch\u2026\r\n7.5 2021-05-24 2021-10-17 {Watch3,1, Watch3,2, Watch3,3, Watch\u2026\r\n14.6 2021-05-24 2021-10-17 {AppleTV11,1, AppleTV5,3, AppleTV6,2\u2026<\/pre>\n<p>&nbsp;<\/p>\n<p>The server gdmf.apple.com is the resource provided by Apple to dictated what iOS versions are available. Since this site only provides a JSON-formatted list, it&#8217;s very easy to use the invoke-RestMethod to grab relevant data.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple has continually enhanced their enterprise update paths over the last several years. The most recent change came with iOS 14.5 which allowed MDM administrators to send a custom command to that allows organizations to decide whether to stay on an older iOS Major version (iOS 14.x) or allow devices to access a newer major &hellip;<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,306,10],"tags":[],"class_list":["post-1491","post","type-post","status-publish","format-standard","hentry","category-mobile-devices","category-scripting","category-tech"],"_links":{"self":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts\/1491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/comments?post=1491"}],"version-history":[{"count":3,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts\/1491\/revisions"}],"predecessor-version":[{"id":1494,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts\/1491\/revisions\/1494"}],"wp:attachment":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/media?parent=1491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/categories?post=1491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/tags?post=1491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}