Share via


Win32_TSGatewayConnectionAuthorizationPolicy 類別的 AddComputerGroupNames 方法

將指定的電腦群組名加入 ComputerGroupNames 屬性。

語法

uint32 AddComputerGroupNames(
  [in] string ComputerGroupNames
);

參數

ComputerGroupNames [in]

要新增至 ComputerGroupNames 屬性的電腦群組名分號分隔清單。 電腦群組名的格式應該是 Domain\ComputerGroupName

傳回值

如果方法成功,則會傳回零。 如果方法不成功,則會傳回非零值。 如需錯誤碼的清單,請參閱 遠端桌面服務 WMI 提供者錯誤碼

備註

如果多部電腦群組名位於 ComputerGroupNames 參數中,而且其中一個名稱無法處理,則不會處理任何名稱。

您必須是 Administrators 群組的成員,才能呼叫此方法。

Managed 物件格式 (MOF) 檔案包含 Windows Management Instrumentation (WMI) 類別的定義。 MOF 檔案不會安裝為 Microsoft Windows 軟體發展工具組 (SDK) 的一部分。 當您使用 伺服器管理員 新增相關聯的角色時,它們會安裝在伺服器上。 如需 MOF 檔案的詳細資訊,請參閱 Managed 物件格式 (MOF)

規格需求

需求
最低支援的用戶端
都不支援
最低支援的伺服器
Windows Server 2008
命名空間
Root\CIMv2\TerminalServices
MOF
TSGateway.mof
DLL
AagWmi.dll

另請參閱

Win32_TSGatewayConnectionAuthorizationPolicy