Tuesday, May 10, 2011

Moving SPWeb inside the SPSSite in SharePoint 2010 using PowerShell

This script will move the site “ToBeMoved” to be under “ToBeMovedTo” and change its Url and Title to “Moved”

$w = Get-SPWeb 'http://servername/ToBeMoved'
$w.ServerRelativeUrl = '/ToBeMovedTo/Moved'
$W.Title = 'Moved'

Please note that it will take some time to be updated.


nabajyoti said...

!!you have just saved someone...Thanks...

nabajyoti said...

You just saved someone his day!!! Thanks..

CBarkers said...

When I think i've done a full library to do this and there is a so simple solution for this... Thanks saving me from ignorance