Closed YuriySamorodov closed 2 years ago
@YuriySamorodov - Have a look at this cmdlet. This has a title option. https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnptenantsite?view=sharepoint-ps
Thanks @robertcaretta. My intention was changing URL as well. Set-PnPSite
does not allow to change site address unfortunately.
@YuriySamorodov - FYI, we looked at this, but we need to discuss this cmdlet a bit further. We'll update this request in due time 🙂
Thanks @veronicageek You have always been and still are of a great help! Appreciate your insight.
Quick idea: -Url
parameter for Set-PnPSite
or Set-PnPTenantSite
cmdlets would be probably even better.
Start-SPOSiteRename https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/start-spositerename?view=sharepoint-ps
On Fri, Apr 23, 2021 at 3:52 PM Yuriy Samorodov @.***> wrote:
Thanks @robertcaretta https://github.com/robertcaretta. My intention was changing URL as well. Set-PnPSite does not allow to change site address unfortunately.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pnp/powershell/issues/603#issuecomment-825919316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMJ2HPLVCTQS5KDVZKHID3TKHM2XANCNFSM43JJDUJA .
I'm working on a project and I'd probably give one of my children up to get the ability to do this in PnP. I'm not above bribing someone, just give me their Venmo address. :)
In my quest to find a solution for this issue I noticed that the M365 CLI has a command for this. I know there's some code sharing between the two projects. Does that help whoever is going to write the PowerShell version?
Hi @erwinvanhunen @gautamdsheth , Just wondering if there is any progress on this?
Hi @erwinvanhunen @gautamdsheth , Just wondering if there is any progress on this?
I wrote a function that uses PnP that does this that I've been meaning to blog. I'll get it up in the next couple of days.
Hi @erwinvanhunen @gautamdsheth , hope you both doing great. Is there any hope this can be added in PnP.PowerShell?
Took some time, but it's finally there. From tomorrows PreRelease onwards it will be available as Rename-PnPTenantSite
. Thanks to @gautamdsheth!
Hi @KoenZomers , appreciate it, You rock!
Kudos go to @gautamdsheth for this one 🤗
@gautamdsheth , thanks for making the greatest PnP.PowerShell even better!
Is your feature request related to a problem? Please describe. It does not seem there is any way to rename sites using PnP.PowerShell
Describe the solution you'd like It would be great to have some kind of a cmdlet that would allow rename SharePoint Online sites with
PnP.PowerShell
like:Rename-PnPSite
Rename-PnPTenantSite
Describe alternatives you've considered
SharePoint Online Admin Center
Start-SPOSiteRename
https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/start-spositerename?view=sharepoint-psAdditional Context
601