external help file | Module Name | online version | schema |
---|---|---|---|
ComputerManagement-help.xml |
ComputerManagement |
2.0.0 |
Return a list of open sessions
Get-OpenSession [[-ComputerName] <Object>] [<CommonParameters>]
This function returns a list of open session on a given server. The output is similar to that of the Manage Open Sessions dialog in the Share and Storage Management console.
Get-OpenSessions -ComputerName fs
User Computer ConnectTime IdleTime
---- -------- ----------- --------
user1 10.10.1.62 1615 1
user2 10.10.1.156 7529 17
This example shows the basic usage of the command.
This is the FQDN or NetBIOS name of the computer
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: (hostname)
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
FunctionName : Get-OpenSessions Created by : Jeff Patton Date Coded : 09/26/2011 11:35:40