Powershell: Can I quickly get help with a parameter in the function?

Created on 13 Apr 2020  路  3Comments  路  Source: PowerShell/PowerShell

Steps to reproduce

Get-PSSession -ComputerName -?

Expected behavior

-ComputerName <String[]>
        Specifies an array of names of computers. Gets the sessions t
        hat connect to the specified computers. Wildcard characters a         re not permitted. There is no default value.

        Beginning in Windows PowerShell 3.0, PSSession objects are st
        ored on the computers at the remote end of each connection. T
        o get the sessions on the specified computers, PowerShell cre
        ates a temporary connection to each computer and runs a Get-P
        SSession command.

        Type the NetBIOS name, an IP address, or a fully-qualified do
        main name of one or more computers. To specify the local comp
        uter, type the computer name, localhost, or a dot (.).

        Note: This parameter gets sessions only from computers that r
        un Windows PowerShell 3.0 or later versions of PowerShell. Ea
        rlier versions do not store sessions.

        Required?                    true
        Position?                    0
        Default value                None
        Accept pipeline input?       True (ByPropertyName)
        Accept wildcard characters?  false

Actual behavior

NAME
    Get-PSSession

SYNOPSIS
    Gets the PowerShell sessions on local and remote computers.


SYNTAX
    Get-PSSession [-ConnectionUri] <Uri[]> [-AllowRedirection] [-Auth
    entication {Default | Basic | Negotiate | NegotiateWithImplicitCr
    edential | Credssp | Digest | Kerberos}] [-CertificateThumbprint
    <String>] [-ConfigurationName <String>] [-Credential <PSCredentia
    l>] [-Name <String[]>] [-SessionOption <PSSessionOption>] [-State
     {All | Opened | Disconnected | Closed | Broken}] [-ThrottleLimit
     <Int32>] [<CommonParameters>]

....

Environment data


Issue-Question Resolution-Answered WG-Interactive-HelpSystem

Most helpful comment

try this
Get-Help Get-PSSession -Parameter computername

All 3 comments

try this
Get-Help Get-PSSession -Parameter computername

This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Was this page helpful?
0 / 5 - 0 ratings