Class: WMI::Win32_Group

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

Overview

Win32_Group クラスは、グループ アカウントのデータを表します。グループ アカウントにより、アクセス特権がユーザー一覧に対して変更されるようになります。 例: Marketing2

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

- (string) Caption (readonly)

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

Returns:

  • (string)

    Caption



19
20
21
# File 'lib/Win32_Group.rb', line 19

def Caption
  @Caption
end

- (string) Description (readonly)

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

Returns:

  • (string)

    Description



25
26
27
# File 'lib/Win32_Group.rb', line 25

def Description
  @Description
end

- (string) Domain (readonly)

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

 

Returns:

  • (string)

    Domain



32
33
34
# File 'lib/Win32_Group.rb', line 32

def Domain
  @Domain
end

- (datetime) InstallDate (readonly)

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

 

Returns:

  • (datetime)

    InstallDate



38
39
40
# File 'lib/Win32_Group.rb', line 38

def InstallDate
  @InstallDate
end

- (string) Name (readonly)

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

Returns:

  • (string)

    Name



49
50
51
# File 'lib/Win32_Group.rb', line 49

def Name
  @Name
end

- (string) SID (readonly)

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

 SID 

Returns:

  • (string)

    SID



59
60
61
# File 'lib/Win32_Group.rb', line 59

def SID
  @SID
end

- (uint8) SIDType (readonly)

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

 SIDType 

Returns:

  • (uint8)

    SIDType



83
84
85
# File 'lib/Win32_Group.rb', line 83

def SIDType
  @SIDType
end

- (string) Status (readonly)

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

 

Returns:

  • (string)

    Status



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

def Status
  @Status
end

Instance Method Details

- (uint32) Rename(Name)

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

Parameters:

  • (string, #read) Name

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

    例: thomasw

Returns:

  • (uint32)


13
14
# File 'lib/Win32_Group.rb', line 13

def Rename Name
end