pnp / powershell

PnP PowerShell
https://pnp.github.io/powershell
MIT License
680 stars 348 forks source link

[FEATURE] Rename-PnPSite or Rename-PnPTenantSite Cmdlet Request #603

Closed YuriySamorodov closed 2 years ago

YuriySamorodov commented 3 years ago

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:

Describe alternatives you've considered

Additional Context

601

robertcaretta commented 3 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

YuriySamorodov commented 3 years ago

Thanks @robertcaretta. My intention was changing URL as well. Set-PnPSite does not allow to change site address unfortunately.

veronicageek commented 3 years ago

@YuriySamorodov - FYI, we looked at this, but we need to discuss this cmdlet a bit further. We'll update this request in due time 🙂

YuriySamorodov commented 3 years ago

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.

robertcaretta commented 3 years ago

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 .

ToddKlindt commented 3 years ago

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. :)

ToddKlindt commented 3 years ago

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?

YuriySamorodov commented 3 years ago

Hi @erwinvanhunen @gautamdsheth , Just wondering if there is any progress on this?

ToddKlindt commented 3 years ago

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.

YuriySamorodov commented 2 years ago

Hi @erwinvanhunen @gautamdsheth , hope you both doing great. Is there any hope this can be added in PnP.PowerShell?

KoenZomers commented 2 years ago

Took some time, but it's finally there. From tomorrows PreRelease onwards it will be available as Rename-PnPTenantSite. Thanks to @gautamdsheth!

YuriySamorodov commented 2 years ago

Hi @KoenZomers , appreciate it, You rock!

KoenZomers commented 2 years ago

Kudos go to @gautamdsheth for this one 🤗

YuriySamorodov commented 2 years ago

@gautamdsheth , thanks for making the greatest PnP.PowerShell even better!