Show-ConsoleObject
Explores an object's members with the keyboard.
Syntax
Show-ConsoleObject
[-Depth <Int32>]
[-Exclude <String[]>]
[-Include <String[]>]
-InputObject <PSObject>
[-MaxItems <Int32>]
[-MaxNodes <Int32>]
[-Mode <Rich| Line| Accessible>]
[[-Output] <Value| Path>]
[-PassThru]
[-RootPath <String>]
[-Title <String>]
[-Width <Int32>]
[<CommonParameters>]#All Parameter SetsDescription
Arrows move, Right and Left expand and collapse, Enter drills into a member, Backspace returns to its parent, and / searches displayed names and values. Ctrl+Enter or F10 accepts the selected node; Esc cancels. Nested values are read lazily and cycles, depth and collection sizes are bounded. In redirected, CI, line and non-interactive sessions, a static inspector is printed and no selection is returned. Objects parsed by ConvertFrom-Json use the same PowerShell member adapter as other objects.
Examples
Example 1
$config | Show-ConsoleObjectBrowse a nested configuration
Example 2
$config | Show-ConsoleObject -PassThruReturn a selected member value
Example 3
$config | Show-ConsoleObject -RootPath '$config' -PassThru PathReturn its PowerShell path
Parameters
- -Depth Int32
- Maximum member depth below the root; default 8.
- -Exclude String[]
- Member names to skip without invoking their getters, supporting wildcards.
- -Include String[]
- Member names to include, supporting wildcards.
- -InputObject PSObject
- The object to browse, supplied directly or through the pipeline.
- -MaxItems Int32
- Maximum items read from each collection; default 100.
- -MaxNodes Int32
- Maximum visible members in an expansion; default 5000.
- -Mode InteractionMode
- Rich runs the keyboard explorer. Line, Accessible and None print the static inspector.
- Possible values:
Rich,Line,Accessible - -Output String
- Value (default) or Path. The positional form supports -PassThru Path.
- Possible values:
Value,Path - -PassThru SwitchParameter
- Returns the selected value after F10 or Ctrl+Enter. Add the positional word Path to return its expression instead.
- -RootPath String
- The variable expression at the start of returned paths; default $x. It is displayed, never evaluated.
- -Title String
- The screen title.
- -Width Int32
- Width used by the static fallback; zero detects the host width.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.