Monday, October 26, 2020

Microsoft 365 MFA - I have lost my mobile which has Microsoft Authenticator apps installed now how to login and register to another mobile .

 1) Update your Office 365 Admin to revoke MFA Session and Require Re-Register MFA.

Go to Azure AD > User (select user) > Authentication methods > Click on Require re-register MFA  and Revoke MFA Session.




2) Go to the URL :  https://aka.ms/proofup and setup your new device.
3) Once Device is get setup you can able to see your old device , Remove this .








Thursday, October 8, 2020

Create custom attribute and update value for guest account users

// Update custom attribute of the user.

Connect-AzureAD 

Get-AzureADUser -ObjectId 79a36543-1e05-4407-9e74-df6bea9135d4 | Select -ExpandProperty ExtensionProperty

Set-AzureADUserExtension -ObjectId 79a36543-1e05-4407-9e74-df6bea9135d4 -ExtensionName "extension_2c8a597a3ee24c138b03a0a67c5180b7_aribaemployeeID" -ExtensionValue "0000809999"
Code with variable
Connect-AzureAD # Enter your Azrue Admin/pwd 

$UserObjectID  = "32b290fb-ea39-4f9b-b4a1-268fb2" # Copy the object id of the user from Azure AD 
$UserAribaID = "0000900022" # Enter user's employee id adding 0 as prefix to make this 10 chararcter example Employee ID = 901022 , Ariba ID = 0000900022
Get-AzureADUser -ObjectId $UserObjectID | Select -ExpandProperty ExtensionProperty # Check extension property before update Set-AzureADUserExtension -ObjectId $UserObjectID -ExtensionName "extension_2c8a597a3ee24c138b03a0a67c5180b7_aribaemployeeID" -ExtensionValue $UserAribaID Get-AzureADUser -ObjectId $UserObjectID | Select -ExpandProperty ExtensionProperty # Check extension property after update .

Sunday, October 4, 2020

SBC - Direct routing assign dial plan

Import-Module SkypeOnlineConnector
$userCredential = Get-Credential
$sfbSession = New-CsOnlineSession -Credential $userCredential
Import-PSSession $sfbSession

Get-CsOnlineUser -Identity "lava@hrmasd.com" | fl RegistrarPool,OnPremLineUriManuallySet,OnPremLineUri,LineUri

Set-CsUser -Identity "lava@hrmasd.com" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:+34000125098

HTML

Script:

JS