Citrix Virtual Apps and Desktops SDK

Get-Provscheme

Gets the list of provisioning schemes.

Syntax

Get-ProvScheme [[-ProvisioningSchemeName] <String>] [-ProvisioningSchemeUid <Guid>] [-ScopeId <Guid>] [-ScopeName <String>] [-ReturnTotalRecordCount] [-MaxRecordCount <Int32>] [-Skip <Int32>] [-SortBy <String>] [-Filter <String>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Lets you retrieve the list of defined provisioning schemes.

Parameters

Name Description Required? Pipeline Input Default Value
ProvisioningSchemeName The name of the provisioning scheme. false false  
ProvisioningSchemeUid The unique identifier of the provisioning scheme. false false  
ScopeId Gets only results with a scope matching the specified scope identifier. false false  
ScopeName Gets only results with a scope matching the specified scope name. false false  
ReturnTotalRecordCount See about_Prov_Filtering for details. false false false
MaxRecordCount See about_Prov_Filtering for details. false false false
Skip See about_Prov_Filtering for details. false false 0
SortBy See about_Prov_Filtering for details. false false  
Filter See about_Prov_Filtering for details. false false  
BearerToken Specifies the bearer token assigned to the calling user false false  
AdminAddress Specifies the address of a XenDesktop controller that the PowerShell snap-in connects to. You can provide this as a host name or an IP address. false false LocalHost. When a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Citrix.Machinecreation.Sdk.Provisioningscheme
This Object Provides Details Of The Provisioning Scheme And Contains The Following Information:
Provisioningschemeuid <Guid>
The Unique Identifier For The Provisioning Scheme.
Provisioningschemename <String>
The Name Of The Provisioning Scheme.
Cpucount <Int>
The Number Of Processors That Vms Will Be Created With When Using This Scheme.
Memorymb <Int>
The Maximum Amount Of Memory That Vms Will Be Created With When Using This Scheme.
Masterimagevm <String>
The Path Within The Hosting Unit Provider To The Copy Of The Vm Snapshot That The Scheme Uses.
Masterimagevmdate <Datetime>
The Date And Time That The Copy Was Made Of The Vm Snapshot Used By The Scheme.
Identitypooluid <Guid>
The Unique Identifier Of The Identity Pool (From The Adidentity Powershell Snap-In) That The Scheme Uses.
Identitypoolname <String>
The Name Of The Identity Pool (From The Adidentity Powershell Snap-In) That The Scheme Uses.
Hostingunituid <Guid>
The Unique Identifier Of The Hosting Unit (From The Hosting Unit Powershell Snap-In) That The Scheme Uses.
Hostingunitname <String>
The Name Of The Hosting Unit (From The Hosting Unit Powershell Snap-In) That The Scheme Uses.
Cleanonboot <Boolean>
Indicates Whether The Vms That Are Created Will Be Reset To A Clean State On Each Boot.
Taskid <Guid>
The Identifier Of Any Current Task That Is Running For The Provisioning Scheme.
Metadata <Citrix.Machinecreation.Sdk.Metadata[]>
The Metadata Associated With This Provisioning Scheme.
Controlleraddress <String[]>
The Dns Names Of The Controllers Associated With This Provisioning Scheme For Quick Deploy Purposes.
Vmmetadata <Char[]>
The Opaque Vm Metadata Block
Usepersonalvdiskstorage <Bool>
True If The Scheme Will Use Personal Vdisk Storage.
Personalvdiskdriveletter <Char>
The Drive Letter For The Personal Vdisk
Personalvdiskdrivesize <Int>
The Size Of The Personal Vdisk In Gb
Profileusagepercentage <Double>
The Percentage Of The Personal Vdisk To Be Used For Profile Data
Dedicatedtenancy <Bool>
Whether To Use Dedicated Tenancy When Creating Machines In Cloud Hypervisors.
Currentmasterimageuid <Guid>
The Unique Identifier Of The Current Master Image Used By The Provisioning Scheme. (See Get-Provschememastervmimagehistory.)
Usewritebackcache <Bool>
True If The Scheme Will Use The Wrote Back Cache Feature.
Writebackcachedisksize <Int>
The Size Of The Write Back Cache Disk If Specified In Gb.
Writebackcachememorysize <Int>
The Size Of The Write Back Memory Cache If Specified In Mb.
Usefulldiskcloneprovisioning <Bool>
Indicates Whether The Machines Are Provisioned Using The Dedicated Full Disk Clone Feature.

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-ProvScheme

ProvisioningSchemeUid        : 7585f0de-192e-4847-a6d8-22713c3a2f42

ProvisioningSchemeName       : Scheme1

CpuCount                     : 1

MemoryMB                     : 1024

MasterImageVM                : /Base.vm/base.snapshot

MasterImageVMDate            : 17/05/2010 09:27:50

IdentityPoolUid              : 03743136-e43b-4a87-af74-ab71686b3c16

IdentityPoolName             : idPool1

HostingUnitUid               : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

HostingUnitName              : HostUnit1

CleanOnBoot                  : True

TaskId                       : 00000000-0000-0000-0000-000000000000

Metadata                     : {Department = Sales}

ControllerAddress            : {}

VMMetadata                   : {0, 1, 0, 0...}

PersonalVDiskDriveLetter     :

PersonalVDiskDriveSize       : 0

UsePersonalVDiskStorage      : False

NetworkMaps                  : {0}

Scopes                       :

DedicatedTenancy             : False

GpuTypeId                    :

ResetAdministratorPasswords  : False

SecurityGroups               : {}

ServiceOffering              :

CurrentMasterImageUid        : c0571690-4f57-4476-901b-fe64d6aecb79

UseWriteBackCache            : True

WriteBackCacheDiskSize       : 24

WriteBackCacheMemorySize     : 256

UseFullDiskCloneProvisioning : False

ProvisioningSchemeUid        : 43d82099-1fd7-4617-93f0-25b160813905

ProvisioningSchemeName       : Scheme2

CpuCount                     : 1

MemoryMB                     : 1024

MasterImageVM                : /Base.vm/base.snapshot

MasterImageVMDate            : 17/05/2010 09:53:40

IdentityPoolUid              : 03743136-e43b-4a87-af74-ab71686b3c16

IdentityPoolName             : idPool1

HostingUnitUid               : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

HostingUnitName              : HostUnit1

CleanOnBoot                  : True

TaskId                       : 00000000-0000-0000-0000-000000000000

Metadata                     : {}

ControllerAddress            : {}

VMMetadata                   : {0, 1, 0, 0...}

PersonalVDiskDriveLetter     :

PersonalVDiskDriveSize       : 0

UsePersonalVDiskStorage      : False

NetworkMaps                  : {0}

Scopes                       :

DedicatedTenancy             : False

GpuTypeId                    :

ResetAdministratorPasswords  : False

SecurityGroups               : {}

ServiceOffering              :

CurrentMasterImageUid        : 022cd6e4-34cb-3f7c-e02a-44ac404483b4

UseWriteBackCache            : True

WriteBackCacheDiskSize       : 24

WriteBackCacheMemorySize     : 256

UseFullDiskCloneProvisioning : False
<!--NeedCopy-->

Description

Returns all of the available provisioning schemes.

Example 2

C:\PS>Get-ProvScheme -ProvisioningSchemeName Scheme[0-1]

ProvisioningSchemeUid        : 7585f0de-192e-4847-a6d8-22713c3a2f42

ProvisioningSchemeName       : Scheme1

CpuCount                     : 1

MemoryMB                     : 1024

MasterImageVM                : /Base.vm/base.snapshot

MasterImageVMDate            : 17/05/2010 09:27:50

IdentityPoolUid              : 03743136-e43b-4a87-af74-ab71686b3c16

IdentityPoolName             : idPool1

HostingUnitUid               : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

HostingUnitName              : HostUnit1

CleanOnBoot                  : True

TaskId                       : 00000000-0000-0000-0000-000000000000

Metadata                     : {}

ControllerAddress            : {}

VMMetadata                   : {0, 1, 0, 0...}

PersonalVDiskDriveLetter     :

PersonalVDiskDriveSize       : 0

UsePersonalVDiskStorage      : False

NetworkMaps                  : {0}

Scopes                       :

DedicatedTenancy             : False

GpuTypeId                    :

ResetAdministratorPasswords  : False

SecurityGroups               : {}

ServiceOffering              :

CurrentMasterImageUid        : c0571690-4f57-4476-901b-fe64d6aecb79

UseWriteBackCache            : True

WriteBackCacheDiskSize       : 24

WriteBackCacheMemorySize     : 256

UseFullDiskCloneProvisioning : False
<!--NeedCopy-->

Description

Returns all of the provisioning schemes that have the name ‘Scheme0’ or ‘Scheme1’.

Get-Provscheme