< Back
Get-MenuItem
Post
NAME Get-MenuItem
SYNOPSIS
Get a list of menu-items
SYNTAX
Get-MenuItem [<CommonParameters>]
Get-MenuItem [-MenuName <String[]>] [<CommonParameters>]
Get-MenuItem [-MenuId <Int32>] [<CommonParameters>]
Get-MenuItem [-MenuObject <PSObject>] [<CommonParameters>]
DESCRIPTION
Returns a list of menus by Menu-name, Menu-ID or the menu object
PARAMETERS
-MenuName <String[]>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MenuId <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-MenuObject <PSObject>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Management.Automation.PSObject
NOTES
NAME: Get-MenuItem
AUTHOR: Tore Groneng tore@firstpoint.no @toregroneng tore.groneng@gmail.com
LASTEDIT: Aug 2016
KEYWORDS: General scripting Controller Menu
-------------------------- EXAMPLE 1 --------------------------
C:>Get-MenuItem
Returns all menu-items for all menus
-------------------------- EXAMPLE 2 --------------------------
C:>Get-MenuItem -MenuName MainMenu
Returns the menu-items for the menu with name MainMenu
-------------------------- EXAMPLE 3 --------------------------
C:>Get-MenuItem -MenuId 1
Returns the menu-items for the menu with id 1
-------------------------- EXAMPLE 4 --------------------------
C:>$Menu = Get-Menu -Name SubMenuSkype
C:> Get-MenuItem -MenuObject $Menu
Returns all the menu-items for the menu with name SubMenuSkype
-------------------------- EXAMPLE 5 --------------------------
C:>Get-Menu -Name SubMenuSkype | Get-MenuItem
Returns all the menu-items for the menu with name SubMenuSkype
RELATED LINKS
SYNOPSIS
Get a list of menu-items
SYNTAX
Get-MenuItem [<CommonParameters>]
Get-MenuItem [-MenuName <String[]>] [<CommonParameters>]
Get-MenuItem [-MenuId <Int32>] [<CommonParameters>]
Get-MenuItem [-MenuObject <PSObject>] [<CommonParameters>]
DESCRIPTION
Returns a list of menus by Menu-name, Menu-ID or the menu object
PARAMETERS
-MenuName <String[]>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MenuId <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-MenuObject <PSObject>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Management.Automation.PSObject
NOTES
NAME: Get-MenuItem
AUTHOR: Tore Groneng tore@firstpoint.no @toregroneng tore.groneng@gmail.com
LASTEDIT: Aug 2016
KEYWORDS: General scripting Controller Menu
-------------------------- EXAMPLE 1 --------------------------
C:>Get-MenuItem
Returns all menu-items for all menus
-------------------------- EXAMPLE 2 --------------------------
C:>Get-MenuItem -MenuName MainMenu
Returns the menu-items for the menu with name MainMenu
-------------------------- EXAMPLE 3 --------------------------
C:>Get-MenuItem -MenuId 1
Returns the menu-items for the menu with id 1
-------------------------- EXAMPLE 4 --------------------------
C:>$Menu = Get-Menu -Name SubMenuSkype
C:> Get-MenuItem -MenuObject $Menu
Returns all the menu-items for the menu with name SubMenuSkype
-------------------------- EXAMPLE 5 --------------------------
C:>Get-Menu -Name SubMenuSkype | Get-MenuItem
Returns all the menu-items for the menu with name SubMenuSkype
RELATED LINKS