if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$siteUrl = "http://SharePoint/sites/projects/testproject1"
$spWeb = Get-SPWeb $siteUrl -ErrorAction Stop
Foreach($node in ($spWeb.Navigation.QuickLaunch)){
write-host "The node title is "$node.Title
$node.Delete()
}
$spWeb.Dispose()
No comments:
Post a Comment