Retrieving Top-Level Containers
Retrieving Top-Level Containers
Use the Get-EmdbTopLevelContainer cmdlet to retrieve the toplevel containers for the current user.
If it is a user with supervisor permissions or similar, the following containers are returned (which containers are available and which IDs they have, also depends on the installed and configured modules of your DSM environment):
Name Type ID
---- ---- --
Managed Users & Computers Domain 8
New Users & Computers Domain 9
Global Software Library Software Library 21
System Items Software Library 22
Managed Virtual Environments Virtualization Environment 41
NotImportedPatches Software Library 51
Managed Mobile Devices Mobile devices 61
Device Library Software Library 15008
If, on the other hand, the executing user has limited permissions, subordinate container objects may be returned as Root containers.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
To retrieve the toplevel containers for the current user, use the following code:
Get-EmdbTopLevelContainer |