Class: WMI::Win32_TSAccount

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

Overview

Setting クラスは、1 つ以上の ManagedSystemElement の構成関連パラメータおよび操作パラメータを表しています。ManagedSystemElement にはそれに関連付けられた複数の設定オブジェクトがあります。要素パラメータの現在の操作可能値は、要素自体のプロパティ、またはその関連付けのプロパティによって反映されます。これらのプロパティでは、設定オブジェクトで同じ値を持つ必要はありません。たとえば、モデムの設定では 56 KB/秒ボー レートですが、操作は 19.2 KB/秒で行われます。

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) AccountName (readonly)

次の両方から構成される AccountName を指定します: エントリのドメインおよび名前。

Returns:

  • (string)

    AccountName



34
35
36
# File 'lib/Win32_TSAccount.rb', line 34

def AccountName
  @AccountName
end

- (uint32) AuditFail (readonly)

失敗のアクセス許可の監査を指定します。

 

Returns:

  • (uint32)

    AuditFail



40
41
42
# File 'lib/Win32_TSAccount.rb', line 40

def AuditFail
  @AuditFail
end

- (uint32) AuditSuccess (readonly)

成功のアクセス許可の監査を指定します。

 

Returns:

  • (uint32)

    AuditSuccess



46
47
48
# File 'lib/Win32_TSAccount.rb', line 46

def AuditSuccess
  @AuditSuccess
end

- (string) Caption (readonly)

CIM_Setting オブジェクトの簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



51
52
53
# File 'lib/Win32_TSAccount.rb', line 51

def Caption
  @Caption
end

- (string) Description (readonly)

CIM_Setting オブジェクトの説明です。

Returns:

  • (string)

    Description



56
57
58
# File 'lib/Win32_TSAccount.rb', line 56

def Description
  @Description
end

- (uint32) PermissionsAllowed (readonly)

許可されているアクセス許可を指定します。

 

Returns:

  • (uint32)

    PermissionsAllowed



62
63
64
# File 'lib/Win32_TSAccount.rb', line 62

def PermissionsAllowed
  @PermissionsAllowed
end

- (uint32) PermissionsDenied (readonly)

許可されるアクセス許可を指定します。

 

Returns:

  • (uint32)

    PermissionsDenied



68
69
70
# File 'lib/Win32_TSAccount.rb', line 68

def PermissionsDenied
  @PermissionsDenied
end

- (string) SettingID (readonly)

CIM_Setting オブジェクトを認識する識別子です。

Returns:

  • (string)

    SettingID



73
74
75
# File 'lib/Win32_TSAccount.rb', line 73

def SettingID
  @SettingID
end

- (string) SID (readonly)

エントリのセキュリティ識別子を指定します。

Returns:

  • (string)

    SID



78
79
80
# File 'lib/Win32_TSAccount.rb', line 78

def SID
  @SID
end

- (string) TerminalName (readonly)

ターミナルの名前です。

Returns:

  • (string)

    TerminalName



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

def TerminalName
  @TerminalName
end

Instance Method Details

- (uint32) Delete

ユーザーまたはグループを既存から削除します。

Returns:

  • (uint32)


7
8
# File 'lib/Win32_TSAccount.rb', line 7

def Delete 
end

- (uint32) ModifyAuditPermissions(PermissionMask, Success)

指定された既存のアカウントに対するアクセス許可の監査のさらに細かいセットの設定を提供します。 アクセス許可は、PermissionMask をとおして個々に設定されます。 PermissionMask は、次の値の列挙です:WINSTATION_QUERY=0、WINSTATION_SET=1、WINSTATION_RESET=2、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED=3、WINSTATION_SHADOW=4,WINSTATION_LOGON=5、WINSTATION_LOGOFF=6、WINSTATION_MSG=7、WINSTATION_CONNECT=8,WINSTATION_DISCONNECT=9

Parameters:

  • (uint32, #read) PermissionMask
  • (boolean, #read) Success

Returns:

  • (uint32)


28
29
# File 'lib/Win32_TSAccount.rb', line 28

def ModifyAuditPermissions PermissionMask, Success
end

- (uint32) ModifyPermissions(Allow, PermissionMask)

この方法は、既存のアカウントに対するアクセス許可のさらに細かいセットの設定を有効にします。 アクセス許可が許可または拒否される場合のフラグは Allowspecifies です。 アクセス許可は、PermissionMask をとおして個々に設定されます。 PermissionMask は、次の値の列挙です:WINSTATION_QUERY、WINSTATION_SET、WINSTATION_RESET、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED、WINSTATION_SHADOW,WINSTATION_LOGON、WINSTATION_LOGOFF、WINSTATION_MSG、WINSTATION_CONNECT,WINSTATION_DISCONNECT

Parameters:

  • (boolean, #read) Allow
  • (uint32, #read) PermissionMask

Returns:

  • (uint32)


18
19
# File 'lib/Win32_TSAccount.rb', line 18

def ModifyPermissions Allow, PermissionMask
end