Get-XenPool

Last published : Nov 12, 2026
Gets the Pool object.

Syntax

Get-XenPool [[-Ref] <XenRef[Pool]>] [-BestEffort] [-SessionOpaqueRef <string>]
    [<CommonParameters>]
Get-XenPool [-Uuid] <guid> [-BestEffort] [-SessionOpaqueRef <string>] [<CommonParameters>]

Description

Retrieves the Pool object. Every pool has exactly one, a standalone host included, so with no parameters the cmdlet returns it; use -Uuid or -Ref to name it.
Pool: Pool-wide information.

Parameters

-BestEffort

If set, the cmdlet continues processing further objects instead of throwing a terminating error when an operation fails for one object.
Attribute Value
Type SwitchParameter
Required False
Position Named
Accepts pipeline input False

-Ref

The Pool object to operate on, specified by its opaque reference.
Attribute Value
Type XenRef[Pool]
Required False
Position 0
Accepts pipeline input True (ByPropertyName)
Aliases opaque_ref

-SessionOpaqueRef

The session object on which to run the cmdlet. This overrides the default session and lets you target a specific open XenServer connection.
Attribute Value
Type string
Required False
Position Named
Accepts pipeline input False

-Uuid

The UUID of the Pool to operate on.
Attribute Value
Type guid
Required True
Position 0
Accepts pipeline input True (ByPropertyName)

Inputs

  • XenRef[Pool]
  • guid

Outputs

  • Pool[]

Examples

Example 1: Get the Pool

PS> Get-XenPool
Retrieves the Pool object. There is exactly one, so no parameters are needed.

Example 2: Retrieve one Pool by uuid

PS> Get-XenPool -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff
Retrieves a single Pool. -Uuid is the way to be sure of exactly one object.

Example 3: Retrieve one Pool by reference

PS> Get-XenPool -Ref OpaqueRef:f433bf7b-2b0c-5f53-7018-7d195addb3ca
Retrieves a single Pool. -Ref takes the opaque reference, which is what the API itself uses and what the records hold.
  • Class: Pool
  • Using the XenServer PowerShell module