Download full document:

# Get-AppLibAppDiskObjectReference

Returns the number of objects holding references to AppDisks.

Syntax

Get-AppLibAppDiskObjectReference -AppDiskUid <Guid> [-AdminAddress <String>] [<CommonParameters>]

Get-AppLibAppDiskObjectReference [-AppDiskName] <String> [-AdminAddress <String>] [<CommonParameters>]

Detailed Description

Returns, for a given AppDisk name or UID, the number of references by objects in other services (e.g. Broker Desktop Groups).

Parameters

Name Description Required? Pipeline Input Default Value
AppDiskName The name of the AppDisk. true false
AppDiskUid The unique identifier of the AppDisk. true true (ByPropertyName)
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Citrix.AppLibrary.Sdk.AppDiskReferences
This object provides details of the AppDisk and contains the following information:
AppDiskUid
The unique identifier for the AppDisk.
AppDiskName
The name of the AppDisk.
References
Objects specifying the referencing type (e.g. Broker Desktop Group) and the number of references by objects of that type.

## Notes In the case of failure, the following errors can result.
Error Codes
-----------
PartialData
Only a subset of the available data was returned.
CouldNotQueryDatabase
The query to get the database was not defined.
PermissionDenied
The user does not have administrative rights to perform this operation.
ConfigurationLoggingError
The operation could not be performed because of a configuration logging error.
CommunicationError
An error occurred while communicating with the service.
DatabaseNotConfigured
The operation could not be completed because the database for the service is not configured.
InvalidFilter
A filtering expression was supplied that could not be interpreted for this cmdlet.
ExceptionThrown
An unexpected error occurred. To locate more details, see the Windows event logs on the controller being used, or examine the XenDesktop logs.

Examples

EXAMPLE 1

C:\PS>Get-AppLibAppDiskObjectReference -AppDiskUid 7585f0de-192e-4847-a6d8-22713c3a2f42

          AppDiskUid    : 7585f0de-192e-4847-a6d8-22713c3a2f42
          AppDiskName   : Disk1
          References    : {Citrix.AppLibrary.Sdk.AppDiskUsage}

Description
-----------
Returns the references to an AppDisk referenced by UID.

EXAMPLE 2

C:\PS>Get-AppLibAppDiskObjectReference -AppDiskUid Disk1

          AppDiskUid    : 7585f0de-192e-4847-a6d8-22713c3a2f42
          AppDiskName   : Disk1
          References    : {Citrix.AppLibrary.Sdk.AppDiskUsage}

Description
-----------
Returns the references to an AppDisk referenced by name.