User cannot be found

An annoying error today when I tried to run New-SPSite. It had worked all day and then suddenly I got this:

New-SPSite : User cannot be found.

I wasn’t sure what PowerShell was complaining about as it had worked all the time. Something must be wrong with the account supplied in the -Owner option of the New-SPSite ,,,, No that wasn’t it.

As always the solution was simple.

I had restarted my PowerShell ISE and hadn’t started it to run as administrator and therefore the user causing the problem was my own account. Once I ran the ISE as administrator (RMB -> Run as administrator) and all worked fine again. phew!

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using contact@sharepains.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue reading