< Back
Register-PSFSessionObjectType
Post
NAME Register-PSFSessionObjectType
SYNOPSIS
Registers a new type as a live session object.
SYNTAX
Register-PSFSessionObjectType [-DisplayName] <String> [-TypeName] <String> [<CommonParameters>]
DESCRIPTION
Registers a new type as a live session object.
This is used in the session container object, used to pass through multiple types of connection objects to a
single PSFComputer parameterclassed parameter.
PARAMETERS
-DisplayName <String>
The display name for the type.
Pick anything that intuitively points at what the object is.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TypeName <String>
The full name of the type.
Required? true
Position? 2
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Register-PSFSessionObjectType -DisplayName 'PSSession' -TypeName
'System.Management.Automation.Runspaces.PSSession'
Registers the type 'System.Management.Automation.Runspaces.PSSession' under the name of 'PSSession'.
RELATED LINKS
SYNOPSIS
Registers a new type as a live session object.
SYNTAX
Register-PSFSessionObjectType [-DisplayName] <String> [-TypeName] <String> [<CommonParameters>]
DESCRIPTION
Registers a new type as a live session object.
This is used in the session container object, used to pass through multiple types of connection objects to a
single PSFComputer parameterclassed parameter.
PARAMETERS
-DisplayName <String>
The display name for the type.
Pick anything that intuitively points at what the object is.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TypeName <String>
The full name of the type.
Required? true
Position? 2
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Register-PSFSessionObjectType -DisplayName 'PSSession' -TypeName
'System.Management.Automation.Runspaces.PSSession'
Registers the type 'System.Management.Automation.Runspaces.PSSession' under the name of 'PSSession'.
RELATED LINKS