Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

remove user from all sitecollection using powershell

$
0
0

Hi All,

I am trying to remove one user from all site collection. I am trying to execute below powershell script

Get-SPSite http://SPSD:8083 |Get-SPWeb |Remove-SPUser "demo\user1"

but i am getting below error

Remove-SPUser : You must specify a valid user object or user identity.

Thanks

------------------------

Regards,

Ajit Shinde


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

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