Get-UserLockReportedComputer Cmdlet
Synopsis
Gets the computers reported in UserLock server.
Syntax
Get-UserLockReportedComputer [-Name <string[]>] [-OnlyWorkstation] [-UserLockServerName <string>] [<CommonParameters>]
Description
The Get-UserLockReportedComputer cmdlet gets the computers reported in UserLock server, this computer object represents a computer with all the interactive sessions opened on it. Caution: PowerShell 3.0 is required.
Parameters
-Name <string[]>
Gets information only about the computers with the specified name. The String represents all or part of the name of the computer. Wildcards are permitted.
Required | false |
Position | 1 |
Accepts pipeline input | true (ByPropertyName) |
Accepts wildcard characters | true |
-OnlyWorkstation <SwitchParameter>
Returns only workstation computers (server computers will not be returned). By default, workstation and server computers are returned.
Required | false |
Position | named |
Accepts pipeline input | false |
Accepts wildcard characters | false |
-UserLockServerName <string>
Specifies the name of the UserLock server. The default is the localhost name.
Required | false |
Position | named |
Accepts pipeline input | false |
Accepts wildcard characters | false |
Default Value | '.' |
<CommonParameters>
For more information about common parameters, type "Get-Help about_commonparameters".
Input Type
System.String
Return Type
ISDecisions.UserLockLibrary.ReportedMachine
Notes
You can also refer to Get-UserLockReportedComputer by its alias, "gulrc". For more information, see about_Aliases. To use Get-UserLockReportedComputer, you must have the "User sessions" UserLock administrative access right.
Examples
Example 1
Get-UserLockReportedComputer
Gets all the reported computers registered in UserLock.
Example 2
Get-UserLockReportedComputer -OnlyWorkstation -UserLockServerName MyUlSrv
Gets all the reported workstation (not servers) computers registered in the 'MyUlSrv' UserLock server.
Example 3
Get-UserLockReportedComputer *TMP*
Gets all the reported computers (workstations and servers) which name contains the 'TMP' string.