Zezima Posted October 5, 2015 Posted October 5, 2015 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?
Zezima Posted October 5, 2015 Author Posted October 5, 2015 /Thread You Use "Get-MSolAccountSku" to get a list of names of license agreements...
sonofsanta Posted October 5, 2015 Posted October 5, 2015 +1 that man It's usually the name you signed up with, so whatever appears before .onmicrosoft.com in your Office 365 address.
DaveCoop Posted October 5, 2015 Posted October 5, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now