New answers tagged audiences
Someone over on the MSDN forums had the same issue. They fixed it by changing the way the context was instantiated. Basically do this: [Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") $context = [Microsoft.Office.Server.ServerContext]::GetContext($mysite) $upm = New-Object ...
Bleh, I wasn't listed in the permissions of the service application even though I was listed as an administrator. Image and fix courtesy of get-spscripts
Top 50 recent answers are included