0
votes
2answers
25 views

After deleting all nodes, QuickLaunch throws “You cannot call a method on a null-valued expression”

If QuickLaunch has nodes, the following causes the error "You cannot call a method on a null valued expression". If not, it carries on as normal. $nodes = $subWeb.Navigation.QuickLaunch write-host ...
0
votes
1answer
197 views

Add Link TopNavigationBar to a publishing site by powershell

I have a site collection with some sites (Publishing theme). I need to add some links to the top navigation bar and the quick launch by Powershell. $web = Get-SPWeb "http://myurl" $newLink = ...
2
votes
1answer
1k views

PowerShell script that deleted quicklaunch entries

I'm running a PowerShell script that deletes about 10 entries per minute. Is there a way to do this more efficiently/quicker, i.e. directly from the database? How can this be achieved? $web = ...
1
vote
2answers
625 views

Add a level 2 subsite to quick launch of its level 1 subsite

How can I add a link on the quick launch of a subsite, which bring us on the level 2 subsite ? if I do $spweb = Get-SPWeb http://url:portwebapp/SiteCollection/SUBSITE1/SUBSITE2 Then ...
0
votes
3answers
379 views

How to hide quicklaunch

I am writing powershell scripts and have been trying to find a solution for this but haven't been able to. I just wanted to find out how to hide the quicklaunch using powershell. Is it a property of ...
0
votes
1answer
533 views

Why are changes to navigation nodes by my Powershell script rolling back?

I've written some scripts that were supposed to help me correct links manually added to the navigation of a site. Basically I'm just doing a find and replace in all of the URLs. I've figured out how ...
0
votes
1answer
866 views

Powershell error while iterating through sites quicklaunch and deleting a specific node

Hi I've put this question up here : http://stackoverflow.com/questions/13130785/delete-navigation-node-with-powershell-from-sharepoint-quicklaunch-in-all-sites but no answer yet so posting here too. ...