共用方式為


MSA_INFO_STATE列舉 (lmaccess.h)

指出受控服務帳戶的狀態。 受控服務帳戶可以是群組受管理的服務帳戶, (gMSA) 或獨立受控服務帳戶 (sMSA) 。 sMSA 僅限於部署到單一計算機。

Syntax

typedef enum _MSA_INFO_STATE {
  MsaInfoNotExist = 1,
  MsaInfoNotService,
  MsaInfoCannotInstall,
  MsaInfoCanInstall,
  MsaInfoInstalled
} MSA_INFO_STATE, *PMSA_INFO_STATE;

常數

 
MsaInfoNotExist
值: 1
帳戶不存在。
MsaInfoNotService
帳戶存在,但不是群組受管理的服務帳戶, (gMSA) 或 Windows Server 2008 R2 或 Windows 7 受管理的服務帳戶。

Windows Server 2008 R2 和 Windows 7: 帳戶不是受控服務帳戶。
MsaInfoCannotInstall
如果受管理的服務帳戶是 gMSA,就無法從 Active Directory 擷取認證,或 Kerberos 加密類型不相符。

Windows Server 2008 R2 和 Windows 7: 無法安裝受控服務帳戶。
MsaInfoCanInstall
可以安裝 sMSA。 gMSA 永遠不會傳回這個常數。

Windows Server 2008 R2 和 Windows 7: 您可以安裝受控服務帳戶。
MsaInfoInstalled
已安裝 gMSA 受控服務帳戶。

Windows Server 2008 R2 和 Windows 7: 已安裝受控服務帳戶。

備註

服務帳戶可以群組管理,而且稱為群組受管理的服務帳戶, (gMSA) 。 獨立受管理的服務帳戶 (sMSA) 僅限於部署到單一計算機。

Windows Server 2008 R2 和 Windows 7: 受管理的服務帳戶 (MSA) 僅限於部署到單一計算機。

規格需求

需求
最低支援的用戶端 Windows 7 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2 [僅限桌面應用程式]
標頭 lmaccess.h

另請參閱

MSA_INFO_0