共用方式為


Win32_RDMSCollectionProperties 類別的 GetProvisioningProperties 方法

擷取虛擬桌面集合的布建屬性。

語法

uint32 GetProvisioningProperties(
  [out] string  PoolVhdType,
  [out] string  MasterVmLocation,
  [out] string  NamePrefix,
  [out] uint32  NameStartIndex,
  [out] string  LocalVmLocation,
  [out] string  LocalGoldVmLocation,
  [out] boolean RunFromSMB,
  [out] string  SMBLocation,
  [out] boolean SMBStreaming,
  [out] string  VmDomain,
  [out] string  VmOU,
  [out] string  ProductKey
);

參數

PoolVhdType [out]

指定集合中虛擬機集區的 VHD(虛擬硬碟)格式。

克隆

複製的 VHD。

DiffDisk

差異 VHD。

MasterVmLocation [out]

接收主要 VM 映像的路徑。

NamePrefix [out]

接收要附加至虛擬機名稱開頭的名稱前置詞。

NameStartIndex [out]

開始索引。

LocalVmLocation [out]

接收 Hyper-V 伺服器上虛擬機的本機路徑。 如果此參數設定為 NULL ,或如果它是空的,則會使用預設的虛擬機目錄。

LocalGoldVmLocation [out]

PoolVhdTpe 參數設定為 「DiffDisk」 時,接收黃金 VHD 映射的本機路徑。 如果此參數設定為 NULL ,或如果它是空的,則會使用預設的虛擬機目錄。

RunFromSMB [out]

接收值,指出是否要從伺服器消息塊 (SMB) 共用執行集合。 TRUE 表示從 SBM 共用執行虛擬機;否則; FALSE

SMBLocation [out]

如果已啟用SMB共用,則接收SMB共用的路徑。

SMBStreaming [out]

接收值,指出是否啟用SMB串流。 如果已啟用SMB共用,則為TRUE;否則;FALSE

VmDomain [out]

接收集合中虛擬機的功能變數名稱。

VmOU [out]

接收集合中虛擬機的Active Directory 組織單位(OU)。

ProductKey [out]

接收集合中虛擬機的OS產品金鑰。

返回值

在成功時傳回 0,否則會傳回 WMI 錯誤碼。

需求

要求 價值觀
最低支援的用戶端
不支援
最低支援的伺服器
Windows Server 2012
Namespace
Root\CIMv2\rdms
MOF
RDManagement.mof
DLL
RDMS.dll

另請參閱

Win32_RDMSCollectionProperties