Forum Discussion
copy files
You can use PowerShell to achive this (for deleted SPO sites).
Set-sposite -Identity https://DOMAIN-my.sharepoint.com/personal/bas_wijdenes_domain_com -Owner "Roger.roger@baswijdenes.com
The owner will now be able to open the onedrive with the link already provided.
If you need more help, let me know.
- Roger RogerMay 20, 2018Iron Contributor
Hi i am able to connect to shell using my credentials myuser@mydomain.com
PS C:\Windows\system32> Connect-SPOService -Url https://dubaiaviationcorp-admin.sharepoint.com
lets say deleted user is rogerfederer his domain account is roger.federer in AD and email id was roger.federer@mydomain.com
next should i proceed with which syntax
Set-SPOUser -Site https://mydomain-my.sharepoint.com/personal/roger_federer_mydomain.com -loginName roger.federer@mydomain.com -IsSiteCollectionAdmin $true
or
Set-SPOUser -Site https://mydomain-my.sharepoint.com/personal/roger.federer_mydomain.com -loginName roger.federer@mydomain.com -IsSiteCollectionAdmin $true
once its done can i access his file by the rul
https://mydomain-my.sharepoint.com/personal/roger_federer_mydomain_com/_layouts/15/onedrive.aspx
- DeletedMay 20, 2018probably roger.federer_domain_com but just try both you won't hurt anything trying and you'll know when you get it cause you wont' get an error.
Also the -loginname is YOUR login or who you want to give access (make the site collection admin) not that user.- Roger RogerMay 20, 2018Iron Contributor
thanks alot will try and update you
Set-SPOUser -Site https://mydomain-my.sharepoint.com/personal/roger.federer_mydomain.com -loginName myuser@mydomain.com -IsSiteCollectionAdmin $true
- Roger RogerMay 20, 2018Iron Contributor
i am getting the below error, i have installed sharepoing management shell, i am getting below error
PS C:\Windows\system32> Connect-SPOService -Url https://teanant-admin.sharepoint
.com -credential myuser@mydomain.com
Connect-SPOService : Could not connect to SharePoint Online.
At line:1 char:1
+ Connect-SPOService -Url https://teanant-admin.sharepoint.com -credential
myuser ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], InvalidO
perationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Onlin
e.SharePoint.PowerShell.ConnectSPOServiceeven i tried both but i could not connect
Connect-SPOService -Url https://mydomain-my.sharepoint.com -credential myuser@mydomain.com
Connect-SPOService -Url https://mydomain-admin..sharepoint.com -credential myuser@mydomain.com