<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>change mfa mobile number using powershell &#8211; Sibeesh Passion</title>
	<atom:link href="https://mail.sibeeshpassion.com/tag/change-mfa-mobile-number-using-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://mail.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Tue, 19 Oct 2021 14:39:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>change mfa mobile number using powershell &#8211; Sibeesh Passion</title>
	<link>https://mail.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Change MFA Phone/Mobile Number Using PowerShell</title>
		<link>https://mail.sibeeshpassion.com/change-mfa-phone-mobile-number-using-powershell/</link>
					<comments>https://mail.sibeeshpassion.com/change-mfa-phone-mobile-number-using-powershell/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Tue, 19 Oct 2021 14:39:18 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure AD]]></category>
		<category><![CDATA[change mfa mobile number using powershell]]></category>
		<category><![CDATA[powershell]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=14494</guid>

					<description><![CDATA[Did you know that you can change the mobile number of a user from Azure AD, by using PowerShell? Here in this post, we will see how easy it is to change the user properties of an AD user.]]></description>
										<content:encoded><![CDATA[
<p>Did you know that you can change the mobile number of a user from Azure AD, by using PowerShell? Here in this post, we will see how easy it is to change the user properties of an AD user. To get started, we need to install the AzureAD module from the <a rel="noreferrer noopener" href="https://www.powershellgallery.com/packages/AzureAD/2.0.2.140" target="_blank">PowerShell Gallery</a> You can get more details about this module <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/powershell/module/azuread/?view=azureadps-2.0&amp;WT.mc_id=AZ-MVP-5001828" target="_blank">here</a>. </p>



<pre class="wp-block-code"><code>Install-Module -Name AzureAD</code></pre>



<p>You will be prompted to accept the installation, give Yes or A. </p>



<pre class="wp-block-code"><code>Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
&#91;Y] Yes  &#91;A] Yes to All  &#91;N] No  &#91;L] No to All  &#91;S] Suspend  &#91;?] Help (default is "N"): A</code></pre>



<p>You can also check whether this module is installed or not by using the command <code>Get-Module AzureADPreview</code></p>



<p>Once you are done, it is time to connect to your Azure AD by using the command <code>Connect-AzureAD</code>. That will give you an output as in the preceding image. </p>



<figure class="wp-block-image size-large"><a href="/wp-content/uploads/2021/10/image.png"><img fetchpriority="high" decoding="async" width="1024" height="111" src="/wp-content/uploads/2021/10/image-1024x111.png" alt="" class="wp-image-14495" srcset="/wp-content/uploads/2021/10/image-1024x111.png 1024w, /wp-content/uploads/2021/10/image-300x33.png 300w, /wp-content/uploads/2021/10/image-768x83.png 768w, /wp-content/uploads/2021/10/image-1536x166.png 1536w, /wp-content/uploads/2021/10/image.png 1707w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption>Connect-AzureAD Output</figcaption></figure>



<p>Now, use the command below to change the properties of your user. </p>



<pre class="wp-block-code"><code>Set-AzureADUser -ObjectId user1@domain.com -OtherMails @("user2@domain.com") -Mobile "+353 000000000" -TelephoneNumber "+353 000000000"</code></pre>



<p>You can also verify the changes by running the commands below. </p>



<pre class="wp-block-code"><code>Get-AzureADUser -ObjectID user@domain.com | select otherMails
Get-AzureADUser -ObjectID user@domain.com | select Mobile
Get-AzureADUser -ObjectID user@domain.com | select TelephoneNumber</code></pre>



<figure class="wp-block-image size-large"><a href="/wp-content/uploads/2021/10/image-1.png"><img decoding="async" width="1024" height="470" src="/wp-content/uploads/2021/10/image-1-1024x470.png" alt="" class="wp-image-14496" srcset="/wp-content/uploads/2021/10/image-1-1024x470.png 1024w, /wp-content/uploads/2021/10/image-1-300x138.png 300w, /wp-content/uploads/2021/10/image-1-768x353.png 768w, /wp-content/uploads/2021/10/image-1-1536x705.png 1536w, /wp-content/uploads/2021/10/image-1.png 1708w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption>Get-AzureADUser Output</figcaption></figure>



<p>After you have changed your mobile number, verify the same when it is asked, and you should be able to Enable the Two-Step Verification on the <a href="https://mysignins.microsoft.com/security-info" target="_blank" rel="noreferrer noopener">Security Information page</a>. </p>



<figure class="wp-block-image size-large"><a href="/wp-content/uploads/2021/10/image-2.png"><img decoding="async" width="1024" height="231" src="/wp-content/uploads/2021/10/image-2-1024x231.png" alt="" class="wp-image-14497" srcset="/wp-content/uploads/2021/10/image-2-1024x231.png 1024w, /wp-content/uploads/2021/10/image-2-300x68.png 300w, /wp-content/uploads/2021/10/image-2-768x173.png 768w, /wp-content/uploads/2021/10/image-2-1536x347.png 1536w, /wp-content/uploads/2021/10/image-2-2048x462.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption>Enable two-step verification</figcaption></figure>



<p></p>



<h1 class="wp-block-heading">References</h1>



<p><a href="https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-sspr-authenticationdata#use-powershell-version-2">https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-sspr-authenticationdata#use-powershell-version-2</a></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/change-mfa-phone-mobile-number-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
