Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
5.9k views
in Technique[技术] by (71.8m points)

sharepoint - Cannot change -LockState for personal site

I have a problem with my Sharepoint Online instance. To prevent sharing files in Microsoft Teams I have locked all personal sites for my previous tenant domain. It works flawlessly, as people cannot use OneDrive anymore.

We then used AD Connect to migrate all users from local AD. We took away right to create personal site with storage for everyone, so when user try to log in OneDrive he gets an error. It works - personal sites are not created.

But before we took away create personal site right - we manually transfered two accounts. Now they are synchronized too. They had mysite tho I so blocked it toghether with the rest.

The problem is that I cannot unlock this mysite anymore...

Set-SPOSite -Identity "https://xxx-my.sharepoint.com/personal/xxx" -LockState "Unlock" Does not work. It does not print any errors...

I use this to check status:

    Foreach($Site in $Sites){      
        Write-Host $Site.Url  
        Write-Host $Site.LockState
    }

It shows name of the site and status So I change correct name but the script shows that nothing changes...

Any ideas?

Additional information: I can lock/unlock all sites from online tenant no problem. I have problems with new sites from local AD...

question from:https://stackoverflow.com/questions/65846449/cannot-change-lockstate-for-personal-site

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...