Quantcast
Channel: Microsoft Office 365
Viewing all articles
Browse latest Browse all 17713

using powershell to assign a license

$
0
0

I'm running powershell as an admin, I have the latest azure powershell tools installed, the account I'm connecting to o365 is an enterprise admin.

We are using dirsync to get our AD users into o365

when I run Set-MsolUser -UserPrincipalName user@domain.com -UsageLocation US 

I get access denied, I've tried with a few different users, I've also tried -assignlicenses with our correct sku

My large plan is to be able to script assigning a o365 license to a group of users,but I always to to start small to make sure my basic commands working before I start with the larger script.

Not sure why I'm getting access denied


Viewing all articles
Browse latest Browse all 17713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>