Jump to content

Recommended Posts

Posted

Hi there,

 

I'm trying to create an account via powershell for office 365 using the "new-msoluser" cmdlet. I acn assign a license to the user with the "-licenseASsignment" option. The example text says "-LicenseAssignment "Contoso:BPOS_Standard" and according to google Contoso is a fictionional company that microsoft use in its examples..

 

Our license plan is called;

 

"

Office 365 Education for students"



 

 

any ideas?

Posted

Hi have you connected to O365 first ?

 

Remote Powershell Commands

 

 

Enter Credentials

 

 

$cred = Get-Credential

 

 

Now Create a session

 

 

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection

 

 

Next import cmdlets

 

 

$importresults = Import-PSSession $s

 

then try running your commands

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...