Win32 API 日本語リファレンス
ホームNetworkManagement.NetManagement › MSA_INFO_STATE

MSA_INFO_STATE

列挙型
基底型i4

メンバー 5

名前10進16進説明
MsaInfoNotExist10x1アカウントが存在しません。
MsaInfoNotService20x2

アカウントは存在しますが、グループマネージドサービスアカウント (gMSA) でも、Windows Server 2008 R2 または Windows 7 のマネージドサービスアカウントでもありません。

Windows Server 2008 R2 および Windows 7: アカウントがマネージドサービスアカウントではありません。

MsaInfoCannotInstall30x3

マネージドサービスアカウントが gMSA の場合、Active Directory から資格情報を取得できなかったか、Kerberos の暗号化の種類が一致しませんでした。

Windows Server 2008 R2 および Windows 7: マネージドサービスアカウントをインストールできません。

MsaInfoCanInstall40x4

sMSA をインストールできます。この定数が gMSA に対して返されることはありません。

Windows Server 2008 R2 および Windows 7: マネージドサービスアカウントをインストールできます。

MsaInfoInstalled50x5

gMSA のマネージドサービスアカウントがインストールされています。

Windows Server 2008 R2 および Windows 7: マネージドサービスアカウントがインストールされています。

公式ドキュメント

マネージドサービスアカウントの状態を示します。マネージドサービスアカウントには、グループマネージドサービスアカウント (gMSA) とスタンドアロンマネージドサービスアカウント (sMSA) のいずれかがあります。sMSA は 1 台のコンピューターにのみ配置できます。

解説(Remarks)

サービスアカウントはグループで管理でき、グループマネージドサービスアカウント (gMSA) と呼ばれます。スタンドアロンマネージドサービスアカウント (sMSA) は 1 台のコンピューターにのみ配置できます。

Windows Server 2008 R2 および Windows 7: マネージドサービスアカウント (MSA) は 1 台のコンピューターにのみ配置できます。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
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 Enum
import 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* = 5
enum 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