So since I just wasted more time than I want to admit getting this figured out, I’ going to share here how to add  Group permissions. Googeling, there is not a whole lot of info about it out there and most sites even say it is not supported. There is unfortunately no ‘Get-SPOGroup’ cmdlet, so PowerShell does not help in this case. Ugg, Microsoft, I thought that was the whole point of PowerShell!? Well, you can get the needed info via GUI.

The problem:

We need to be able to access and manage the SharePoint and mainly the OneDrive for Business content for users. We can do that easily via GUI, but going to the
Sharepoint Admincenter -> User Profiles -> Type in a name -> Right-click on ‘Manage Site Collection Owners’ -> Add the ‘AD Admin Group’ 


Now, that is all fine and dandy, but we have thousands of users, so if doing the above thousands of times, does not sound too fun. We also don’t have an intern handy to do this…

Now, the really frustrating part is, that you can not do that easily via PowerShell either!?!

Now the good news is, yes you can do it via PowerShell, the bad news is, to get the needed info, you can not use PowerShell, you have to do some diggin’ to get the SID form the Sharepoint Online GUI:

  1. Navigate to the root of the sharepoint site:
  2. Click on the gear/cog on the top right and click on  ‘Site settings
  3. Under ‘Users and Permissions, click on ‘Site permissions’
  4. In the top ribbon, click on ‘Check Permissions’
  5. Type in the ‘AD ADMIN GROUP’ name and click on ‘Check Now’

On the bottom you’ll see a tiny line coming up, giving you the SID of the group


The final PowerShell command to set the group permission for a single user is like so:

And the following script will iterate through all SPO users and assign the rights

Credit mainly goes to for the iteration part.

I hope for you avid Googler who has to do the same, this will save you some time.



One thing that has annoyed me for a long time, si the fact that there was no obvious / easy way to connect to the console session of a VM, so you have to open the Hyper-V manager, click on your VM and click on ‘connect’. That’s just too much clicking…

I found that Hyper-V manager is using the ‘vmconnect.exe’ to connect to the console session, and I wrote this little function that will kind of act like ‘enter-pssession’ just instead of connection to a session it actually launches the vm console. Saved me alot of time. :o)

I am not sure how you launch PowerShell, but I found for me the fastest and easiest way is the new option at is ‘baked’ into Windows 10.

I am sure you are familiar with pressing ‘WIN+X’ or right-clicking on the start button?

This thing:
menuoldWell there is now a way to replace the Command Prompt with PowerShell in a few clicks:

Right-click on the TaskBar -> Properties (or Settings,if you have the Anniversary Update installed)


And that’s it , now you have PowerShell as an option. ‘Win+X’ and then ‘A’ will give you an administrative PowerShell window :o)


By now, I’m sure everyone has heard of Nano server, it is the next big or rather small thing form Microsoft. If you just started you looking into Nano server, the process is quite confusing, as it is well not a standalone server, but more like a self build mini server version.

Here my script how to build one from scratch, super easy.