MSA_INFO_STATE
列挙型メンバー 5
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| MsaInfoNotExist | 1 | 0x1 | アカウントが存在しません。 |
| MsaInfoNotService | 2 | 0x2 | アカウントは存在しますが、グループマネージドサービスアカウント (gMSA) でも、Windows Server 2008 R2 または Windows 7 のマネージドサービスアカウントでもありません。 Windows Server 2008 R2 および Windows 7: アカウントがマネージドサービスアカウントではありません。 |
| MsaInfoCannotInstall | 3 | 0x3 | マネージドサービスアカウントが gMSA の場合、Active Directory から資格情報を取得できなかったか、Kerberos の暗号化の種類が一致しませんでした。 Windows Server 2008 R2 および Windows 7: マネージドサービスアカウントをインストールできません。 |
| MsaInfoCanInstall | 4 | 0x4 | sMSA をインストールできます。この定数が gMSA に対して返されることはありません。 Windows Server 2008 R2 および Windows 7: マネージドサービスアカウントをインストールできます。 |
| MsaInfoInstalled | 5 | 0x5 | gMSA のマネージドサービスアカウントがインストールされています。 Windows Server 2008 R2 および Windows 7: マネージドサービスアカウントがインストールされています。 |
公式ドキュメント
マネージドサービスアカウントの状態を示します。マネージドサービスアカウントには、グループマネージドサービスアカウント (gMSA) とスタンドアロンマネージドサービスアカウント (sMSA) のいずれかがあります。sMSA は 1 台のコンピューターにのみ配置できます。
解説(Remarks)
サービスアカウントはグループで管理でき、グループマネージドサービスアカウント (gMSA) と呼ばれます。スタンドアロンマネージドサービスアカウント (sMSA) は 1 台のコンピューターにのみ配置できます。
Windows Server 2008 R2 および Windows 7: マネージドサービスアカウント (MSA) は 1 台のコンピューターにのみ配置できます。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum MSA_INFO_STATE : int {
MsaInfoNotExist = 1,
MsaInfoNotService = 2,
MsaInfoCannotInstall = 3,
MsaInfoCanInstall = 4,
MsaInfoInstalled = 5
} MSA_INFO_STATE;public enum MSA_INFO_STATE : int
{
MsaInfoNotExist = 1,
MsaInfoNotService = 2,
MsaInfoCannotInstall = 3,
MsaInfoCanInstall = 4,
MsaInfoInstalled = 5,
}Public Enum MSA_INFO_STATE As Integer
MsaInfoNotExist = 1
MsaInfoNotService = 2
MsaInfoCannotInstall = 3
MsaInfoCanInstall = 4
MsaInfoInstalled = 5
End Enumimport enum
class MSA_INFO_STATE(enum.IntEnum):
MsaInfoNotExist = 1
MsaInfoNotService = 2
MsaInfoCannotInstall = 3
MsaInfoCanInstall = 4
MsaInfoInstalled = 5// MSA_INFO_STATE
pub const MsaInfoNotExist: i32 = 1;
pub const MsaInfoNotService: i32 = 2;
pub const MsaInfoCannotInstall: i32 = 3;
pub const MsaInfoCanInstall: i32 = 4;
pub const MsaInfoInstalled: i32 = 5;// MSA_INFO_STATE
const (
MsaInfoNotExist int32 = 1
MsaInfoNotService int32 = 2
MsaInfoCannotInstall int32 = 3
MsaInfoCanInstall int32 = 4
MsaInfoInstalled int32 = 5
)const
MsaInfoNotExist = 1;
MsaInfoNotService = 2;
MsaInfoCannotInstall = 3;
MsaInfoCanInstall = 4;
MsaInfoInstalled = 5;// MSA_INFO_STATE
pub const MsaInfoNotExist: i32 = 1;
pub const MsaInfoNotService: i32 = 2;
pub const MsaInfoCannotInstall: i32 = 3;
pub const MsaInfoCanInstall: i32 = 4;
pub const MsaInfoInstalled: i32 = 5;const
MsaInfoNotExist* = 1
MsaInfoNotService* = 2
MsaInfoCannotInstall* = 3
MsaInfoCanInstall* = 4
MsaInfoInstalled* = 5enum MSA_INFO_STATE : int {
MsaInfoNotExist = 1,
MsaInfoNotService = 2,
MsaInfoCannotInstall = 3,
MsaInfoCanInstall = 4,
MsaInfoInstalled = 5,
}#define global MsaInfoNotExist 0x1
#define global MsaInfoNotService 0x2
#define global MsaInfoCannotInstall 0x3
#define global MsaInfoCanInstall 0x4
#define global MsaInfoInstalled 0x5