Class: WMI::Win32_UserAccount

Inherits:
Base
  • Object
show all
Defined in:
lib/Win32_UserAccount.rb

Overview

Win32_UserAccount クラスには、Win32 システムのユーザー アカウントに関する情報が含まれています。

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Base

#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_

Instance Attribute Details

- (uint32) AccountType (readonly)

AccountType プロパティには、Win32 ユーザー アカウントの特徴を記述するフラグが含まれています:

  - 

Returns:

  • (uint32)

    AccountType



28
29
30
# File 'lib/Win32_UserAccount.rb', line 28

def AccountType
  @AccountType
end

- (string) Caption (readonly)

Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



33
34
35
# File 'lib/Win32_UserAccount.rb', line 33

def Caption
  @Caption
end

- (string) Description (readonly)

Description プロパティでオブジェクトの説明が提供されます。

Returns:

  • (string)

    Description



39
40
41
# File 'lib/Win32_UserAccount.rb', line 39

def Description
  @Description
end

- (boolean) Disabled

Disabled プロパティにより、Win32 ユーザー アカウントが無効になっているかどうかが判別されます。

 

Returns:

  • (boolean)

    Disabled



47
48
49
# File 'lib/Win32_UserAccount.rb', line 47

def Disabled
  @Disabled
end

- (string) Domain (readonly)

Domain プロパティは、ユーザー アカウントが属している Windows ドメインの名前を示します。

 

Returns:

  • (string)

    Domain



54
55
56
# File 'lib/Win32_UserAccount.rb', line 54

def Domain
  @Domain
end

- (string) FullName

FullName プロパティは、ローカル ユーザーのフル ネームを表します。

 

Returns:

  • (string)

    FullName



61
62
63
# File 'lib/Win32_UserAccount.rb', line 61

def FullName
  @FullName
end

- (datetime) InstallDate (readonly)

InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。

 

Returns:

  • (datetime)

    InstallDate



67
68
69
# File 'lib/Win32_UserAccount.rb', line 67

def InstallDate
  @InstallDate
end

- (boolean) Lockout

Lockout プロパティにより、ユーザー アカウントが Win32 システムでロックアウトされているかどうかが判別されます。

 

Returns:

  • (boolean)

    Lockout



81
82
83
# File 'lib/Win32_UserAccount.rb', line 81

def Lockout
  @Lockout
end

- (string) Name (readonly)

Name プロパティは、このクラスのドメイン メンバによって指定されたドメインの Win32 ユーザー アカウントの名前を示します。

 

Returns:

  • (string)

    Name



88
89
90
# File 'lib/Win32_UserAccount.rb', line 88

def Name
  @Name
end

- (boolean) PasswordChangeable

PasswordChangeable プロパティにより、Win32 ユーザー アカウントのパスワードが変更されるかどうかが決定されます。

 

Returns:

  • (boolean)

    PasswordChangeable



96
97
98
# File 'lib/Win32_UserAccount.rb', line 96

def PasswordChangeable
  @PasswordChangeable
end

- (boolean) PasswordExpires

PasswordExpires プロパティにより、Win32 ユーザー アカウントのパスワードが有効期限切れになるかどうかが決定されます。

 

Returns:

  • (boolean)

    PasswordExpires



104
105
106
# File 'lib/Win32_UserAccount.rb', line 104

def PasswordExpires
  @PasswordExpires
end

- (boolean) PasswordRequired

PasswordRequired プロパティにより、パスワードが Win32 ユーザー アカウントで必要となるかどうかが決定されます。

 

Returns:

  • (boolean)

    PasswordRequired



112
113
114
# File 'lib/Win32_UserAccount.rb', line 112

def PasswordRequired
  @PasswordRequired
end

- (string) SID (readonly)

SID プロパティには、このアカウントのセキュリティ識別子 (SID) が含まれています。

 SID 

Returns:

  • (string)

    SID



122
123
124
# File 'lib/Win32_UserAccount.rb', line 122

def SID
  @SID
end

- (uint8) SIDType (readonly)

SIDType プロパティには、セキュリティ識別子 (SID) が指定される列挙された値が含まれています。

 SIDType 

Returns:

  • (uint8)

    SIDType



146
147
148
# File 'lib/Win32_UserAccount.rb', line 146

def SIDType
  @SIDType
end

- (string) Status (readonly)

Status プロパティはオブジェクトの現在の状態を示す文字列です。

 

Returns:

  • (string)

    Status



159
160
161
# File 'lib/Win32_UserAccount.rb', line 159

def Status
  @Status
end

Instance Method Details

- (uint32) Rename(Name)

Rename() により、ユーザー アカウント名を変更することができます; このクラスでのキーです。 キー プロパティを変更する機能 "Name" は、このクラスで変更されるインスタンスと関連付けられているキー名とは区別できる、新しい名前の別のコンテキストを提供するメソッドとして実装されています。

Parameters:

  • (string, #read) Name

    Name プロパティは、このクラスのドメイン メンバによって指定されたドメインの Win32 ユーザー アカウントの名前を示します。

    例: thomasw

Returns:

  • (uint32)


12
13
# File 'lib/Win32_UserAccount.rb', line 12

def Rename Name
end