Sunday, December 15, 2019

AutopilotProfile via powershell



Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module AzureAD -Force
Install-Module WindowsAutopilotIntune -Force
Connect-MSGraph
Get-AutoPilotProfile
Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON | Out-File c:\AutopilotConfigurationFile.json -Encoding ASCII

License cannot be assigned to a user without a usage location specified.

Error 

License cannot be assigned to a user without a usage location specified.







Resolution 

Select user - User location empty















Click Edit
















From Dropdown menu Select Country















Click Save

Assign licenses in Azure AD

Steps to assign a license in Azure Active Directory 

Login to https://portal.azure.com

Click on users






Select User















On the left-hand side click on the license

You can see no license has been assign to the user.











Click on assignments











Select Enterprise Mobility + Security E5 license and click on Save














Close and you will license will assign to the user.













Your Company Support needs to assign license for

Error

Your Company Support needs to assign license for


Resolution

Assign a license to the user from which the user tries to authenticate or try to login with another user who has a valid license.