<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6013600710297808359</id><updated>2024-09-14T00:01:33.565+05:30</updated><category term="Microsoft"/><category term="Multi Factor Authentication"/><category term="Office 365"/><category term="Windows Powershell"/><title type='text'>Open Source</title><subtitle type='html'>As the name Indicates it is open for everyone.....</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://semicolon93.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6013600710297808359/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://semicolon93.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06573431994849066138</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6013600710297808359.post-5096173603120746328</id><published>2017-11-22T20:56:00.001+05:30</published><updated>2017-11-22T20:56:30.205+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Multi Factor Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="Office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Powershell"/><title type='text'>Steps to enable MFA for Global Admins in Office 365 by Powershell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Open&amp;nbsp;&lt;span style=&quot;border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Windows PowerShell and follow the below steps&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
Step 1: Connect to MsolService via PowerShell&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; font-style: inherit; font-weight: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Running the command below will bring up a popup would require you to enter your Office 365 Administrator Credentials.&lt;/span&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$UserCredential = Get-Credential&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Import-Module MSOnline&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Connect-MsolService –Credential $UserCredential&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step 2: Run the following commands.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; font-style: inherit; font-weight: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$auth = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationRequirement&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$auth.RelyingParty = &quot;*&quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step 3: Choose the MFA State. (As documented above)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; font-style: inherit; font-weight: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;You can choose between &quot;Enabled&quot; and &quot;Enforced&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$auth.State = &quot;Enabled&quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; display: inline !important; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Step 4: Choose the date – Any devices issued for a user before this date would require MFA setup. Normally, we would select the date of running the command.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; font-style: inherit; font-weight: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$auth.RememberDevicesNotIssuedBefore = (Get-Date)&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #454545; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;Step 5: Command to Enable MFA for all&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #454545;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;Global Admins&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #454545; font-family: Courier New, Courier, monospace;&quot;&gt;$O365ROLE = Get-MsolRole -RoleName “Company Administrator”&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #454545; font-family: Courier New, Courier, monospace;&quot;&gt;Get-MsolRoleMember -RoleObjectId $O365ROLE.ObjectId | Foreach{ Set-MsolUser -UserPrincipalName $_.Emailaddress -StrongAuthenticationRequirements $auth}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #454545; font-style: inherit; font-weight: inherit; margin-bottom: 25px; outline: 0px; padding: 0px; vertical-align: baseline; word-break: keep-all; word-wrap: break-word;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://semicolon93.blogspot.com/feeds/5096173603120746328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://semicolon93.blogspot.com/2017/11/steps-to-enable-mfa-for-global-admins.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6013600710297808359/posts/default/5096173603120746328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6013600710297808359/posts/default/5096173603120746328'/><link rel='alternate' type='text/html' href='http://semicolon93.blogspot.com/2017/11/steps-to-enable-mfa-for-global-admins.html' title='Steps to enable MFA for Global Admins in Office 365 by Powershell'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06573431994849066138</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>