desktopadmin
usage: desktopadmin [options]
This command can be used for shutting down connected Desktops, Legacy Desktops or for displaying an administrator message to all users.
Upon shutting down connected Desktops or Legacy Desktops, locked configurations would be released as well.
Any mention of desktops in the description below will represent both the Desktop and Legacy Desktop UI unless specified.
Info!
Only users belonging to the Administrator group are authorized to execute this command.
Options
The command accepts the following options:
Option | Description |
---|---|
[-l, --list] | List all connected desktop sessions include SSO login. Returns a table with session details. Format: <Name>, <Session ID>, <Username> Example,
+----------------+---------------------+----------+
| Name | Session ID | Username |
+----------------+---------------------+----------+
| legacy-desktop | 192.168.0.224:53631 | john |
| desktop | 154379321 | sarah |
+----------------+---------------------+----------+ For Legacy Desktop, Session ID column will display <IP Address:Port>. For Desktop, Session ID column will display Session ID. |
[-k, --locks] | Retrieves a list of locked configurations for each currently connected desktop. Must be used with the Example,
+----------+------------+----------+-------------------------+
| Name | Session ID | Username | Locked Configuration(s) |
+----------+------------+----------+-------------------------+
| desktop | 1363198261 | john | |
| desktop | 1545132119 | sarah | autotest.asserts |
+----------+------------+----------+-------------------------+ Â |
[-m, --message] | Broadcasts a message to all currently logged-in desktops and those that log in later. Use with This message can be removed using the |
[-r, --reset] | Cancel and clear scheduled shutdown and message, if any. Use it with |
[-n, --session] | Apply the command to a specific desktop session obtained using the Use with one of the following options: |
[-x, --shutdown] | Schedules a forced shutdown for all desktops after the specified number of minutes (0 for immediate shutdown). Use it with An optional message can be included using This message will pop up on the desktop and count down of 5 minutes to shutdown. Scheduled shutdown can be canceled using the |
[-s, --status] | Use this option to display the current shutdown timeout and message, if any. Use it with |
Return Codes
Listed below are the different return codes for the desktopadmin
 command:
Code | Description |
---|---|
0 | Will be returned if the command was successful. |
1 | Will be returned if there was a problem parsing command parameters. |
2 | Will be returned if there was a failure scheduling shutdown of Desktops |