Get-SPONavigation

Synopsis

Gets either Global, Current or Search navigation from a web

Syntax

Get-SPONavigation -Web <Web> [-Current] [-Search] [<CommonParameters>]

Description

Parameters

-Web <Web>

Reference to Parent web

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-Current <SwitchParameter>

Switch to pull back current navigation

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Search <SwitchParameter>

Switch to pull back Search navigation

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Get global navigation from a web

PS C:\> Get-SPONavigation -Web $ctx.Web

Get current navigation from a subweb

PS C:\> Get-SPOWeb -Web $ctx.Web -WebUrl MySubWeb | Get-SPONavigation -Current

Related links

Last edited Aug 5, 2014 at 1:06 AM by provokesolutions, version 9

Comments

No comments yet.