{"id":452,"date":"2015-10-22T11:53:59","date_gmt":"2015-10-22T11:53:59","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=452"},"modified":"2015-10-22T11:53:59","modified_gmt":"2015-10-22T11:53:59","slug":"azure-powershell-mfa-and-device-commands","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2015\/10\/azure-powershell-mfa-and-device-commands\/","title":{"rendered":"Azure Powershell MFA and Device Commands"},"content":{"rendered":"<p>As a guy who really likes to script things, I was very happy to read this today:<\/p>\n<p><a href=\"http:\/\/blogs.technet.com\/b\/ad\/archive\/2015\/10\/20\/azure-ad-powershell-public-preview-of-support-for-azure-mfa-new-device-management-commands.aspx\" target=\"_blank\">http:\/\/blogs.technet.com\/b\/ad\/archive\/2015\/10\/20\/azure-ad-powershell-public-preview-of-support-for-azure-mfa-new-device-management-commands.aspx<\/a><\/p>\n<p>Firstly, my Powershell scripts \/ sessions can now be secured using MFA, without having to rewrite my scripts, except those where I built the Credential object with preset credentials&#8230;.but that&#8217;s old anyway.<\/p>\n<p>Secondly, I can now finally manage Registered Devices with the same Module, allowing me to use\u00a0these commands:<\/p>\n<ul>\n<li>\n<div class=\"x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_MsoListParagraphCxSpLast\">Get-MsolDevice<\/div>\n<\/li>\n<li>\n<div class=\"x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_MsoListParagraphCxSpLast\">Enable-MsolDevice<\/div>\n<\/li>\n<li>\n<div class=\"x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_MsoListParagraphCxSpLast\">Disable-MsolDevice<\/div>\n<\/li>\n<li>\n<div class=\"x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_x_MsoListParagraphCxSpLast\">Remove-MsolDevice<\/div>\n<\/li>\n<\/ul>\n<p>You can use either the owner&#8217;s UPN or the device ID with these commands.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a guy who really likes to script things, I was very happy to read this today: http:\/\/blogs.technet.com\/b\/ad\/archive\/2015\/10\/20\/azure-ad-powershell-public-preview-of-support-for-azure-mfa-new-device-management-commands.aspx Firstly, my Powershell scripts \/ sessions can now be secured using MFA, without having to rewrite my scripts, except those where I built the Credential object with preset credentials&#8230;.but that&#8217;s old anyway. Secondly, I can now finally &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2015\/10\/azure-powershell-mfa-and-device-commands\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Azure Powershell MFA and Device Commands<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-452","post","type-post","status-publish","format-standard","hentry","category-azure"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}