Returns one or more Sitecore user sessions using the specified criteria.
Get-Session [-Identity <AccountIdentity>]
Get-Session -InstanceId <String[]>
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
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 |
Specifies the Sitecore SessionID.
Aliases | |
---|---|
Required? | true |
Position? | named |
Default Value | |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
The input type is the type of the objects that you can pipe to the cmdlet.
- None.
The output type is the type of the objects that the cmdlet emits.
-
Sitecore.Web.Authentication.DomainAccessGuard.Session
Returns one or more user sessions.
Help Author: Adam Najmanowicz, Michael West
PS master:\> Get-Session
Created LastRequest SessionID UserName
------- ----------- --------- --------
7/3/2014 3:30:39 PM 7/3/2014 3:44:27 PM tekipna1lk0ccr2z1bdjsua2 sitecore\admin
7/3/2014 4:13:55 PM 7/3/2014 4:13:55 PM wq4bfivfm2tbgkgdccpyzczp sitecore\michael
PS master:\> Get-Session -Identity admin
Created LastRequest SessionID UserName
------- ----------- --------- --------
7/3/2014 3:30:39 PM 7/3/2014 3:44:27 PM tekipna1lk0ccr2z1bdjsua2 sitecore\admin
PS master:\> Get-Session -InstanceId tekipna1lk0ccr2z1bdjsua2,wq4bfivfm2tbgkgdccpyzczp
Created LastRequest SessionID UserName
------- ----------- --------- --------
7/3/2014 3:30:39 PM 7/3/2014 3:44:27 PM tekipna1lk0ccr2z1bdjsua2 sitecore\admin