Get-Session

Returns one or more Sitecore user sessions using the specified criteria.

Syntax

Get-Session [-Identity <AccountIdentity>]

Get-Session -InstanceId <String[]>

Detailed Description

The Get-Session command returns one or more Sitecore user sessions using the specified criteria.

The Identity parameter specifies the Sitecore user to get. You can specify a user by its local name or fully qualified name.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Identity <AccountIdentity>

Specifies the Sitecore user by providing one of the following values.

Local Name
    Example: admin
Fully Qualified Name
    Example: sitecore\admi
Aliases

Required?

false

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InstanceId <String[]>

Specifies the Sitecore SessionID.

Aliases

Required?

true

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Sitecore.Web.Authentication.DomainAccessGuard.Session

    Returns one or more user sessions.

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE 1

EXAMPLE 2

EXAMPLE 3

Last updated