List & Query
It is possible to list information using the bconsole .ls
command and providing a path.
In general, we need to provide a path representing a folder inside the user mailbox.
In addition, it is also possible to list the users from a given exchange endpoint through a .query
command.
Below, there are some examples:
List users:
*.query client=127.0.0.1-fd plugin="e2ws: endpoint=xxxx admin_user=xxxxx@my.domain admin_password=xxxxx" parameter=user
user=ex-admin@testlab.local
displayName=Exchange S. Admin
guid=82190796-3221-4f26-8efb-c52ffdc2c4d2
reference=/o=BaculaSystems/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=df20c005a2b64a3a82d431e97f12ce78-Exchange S
user=support@testlab.local
displayName=First S. User
guid=48b2b400-44ab-40e5-995c-fede3b4453c3
reference=/o=BaculaSystems/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=8efecafa2b724e85990b1047fca7cba3-First S. U
user=beuser@testlab.local
displayName=Backup Exec
guid=ca497f2d-5b03-4959-8dc8-78f475905a10
reference=/o=BaculaSystems/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=3f1b5ef6f9ef4a00bd5ea92206d7675c-Backup Exe
user=support2@testlab.local
displayName=Second D. User
guid=527e07d5-a961-4d4b-bc7a-ec00ebc09c32
reference=/o=BaculaSystems/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=ccc701ae568643329c87dbcaa8f0acfd-Second D.
user=CompanyMeeting@testlab.local
displayName=Bsys room
guid=8b357da2-1249-4fbb-ad27-070272ef7524
reference=/o=BaculaSystems/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=93b1df2aff8a4fadbf15d58b73c69999-Bsys room
List inbox emails:
*.ls client=127.0.0.1-fd plugin="e2ws: endpoint=xxxxxxxx admin_user=xxxx@mydomain.com admin_password=xxxx user=ex-admin@testlab.local service=email" path=Inbox
Connecting to Client 127.0.0.1-fd at 127.0.0.1:8102
drwxr-xr-x 1 nobody nogroup -1 1970-01-01 00:59:59 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/
-rw-r----- 1 nobody nogroup 386774 2023-04-14 10:16:15 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPfLckyAAA=_r20230414-101615.msg
-rw-r----- 1 nobody nogroup 381535 2023-03-30 17:04:26 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgqFAAA=_r20230330-170426.msg
-rw-r----- 1 nobody nogroup 381535 2023-03-30 17:04:09 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgqEAAA=_r20230330-170409.msg
-rw-r----- 1 nobody nogroup 385825 2023-03-30 17:03:22 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgqDAAA=_r20230330-170322.msg
-rw-r----- 1 nobody nogroup 385598 2023-03-30 17:02:10 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgqCAAA=_r20230330-170210.msg
-rw-r----- 1 nobody nogroup 386081 2023-03-30 17:00:59 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgqBAAA=_r20230330-170059.msg
-rw-r----- 1 nobody nogroup 382465 2023-03-30 16:59:48 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgqAAAA=_r20230330-165948.msg
-rw-r----- 1 nobody nogroup 381644 2023-03-30 16:59:05 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgp%2FAAA=_r20230330-165905.msg
-rw-r----- 1 nobody nogroup 384487 2023-03-30 16:58:09 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgp+AAA=_r20230330-165809.msg
-rw-r----- 1 nobody nogroup 381568 2023-03-30 16:57:44 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgp9AAA=_r20230330-165744.msg
-rw-r----- 1 nobody nogroup 381978 2023-03-30 16:57:18 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgp8AAA=_r20230330-165718.msg
-rw-r----- 1 nobody nogroup 381402 2023-03-30 16:55:51 /@e2ws/testlab.local/users/ex-admin@testlab.local/Inbox/AAPXSgp7AAA=_r20230330-165551.msg
...
See also
Go back to Backup in Exchange EWS Plugin
Go back to Restore in Exchange EWS Plugin
Go back to the Operations article.