Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

783 lines
36 KiB

  1. [Abstract,
  2. Description ("The Win32_Account class contains information about "
  3. "user accounts and group accounts known to the Win32 system. User "
  4. "or group names recognized by a Windows NT domain are "
  5. "descendents (or members) of this class. The Win32_Account class "
  6. "is not included in a default hardware inventory operation."): ToSubClass,
  7. Locale (0x409), UUID ("{8502C4C9-5FBB-11D2-AAC1-006008C78BC7}") ]
  8. class Win32_Account:CIM_LogicalElement
  9. {
  10. [read : ToSubClass, key: ToSubClass,
  11. Description ("The Domain property indicates the name of "
  12. "the Windows domain to which a group or user belongs."
  13. "\nExample: NA-SALES"): ToSubClass,
  14. MappingStrings {"Win32API|Network Management Functions|"
  15. "Domain"}: ToSubClass]
  16. string Domain ;
  17. [Fixed, read : ToSubClass,
  18. Description ("The SID property contains the security identifier "
  19. "(SID) for this account. a SID is a string value of variable "
  20. "length used to identify a trustee. Each account has a unique SID "
  21. "issued by an authority (such as a Windows domain), stored in "
  22. "a security database. When a user logs on, the system retrieves "
  23. "the user's SID from the database and places it in the user's access "
  24. "token. The system uses the SID in the user's access token to "
  25. "identify the user in all subsequent interactions with Windows "
  26. "security. When a SID has been used as the unique identifier for a "
  27. "user or group, it cannot be used again to identify another "
  28. "user or group."): ToSubClass,
  29. MappingStrings {"Win32API|Security Identifiers (SIDs)"}: ToSubClass]
  30. string SID ;
  31. [Fixed, read : ToSubClass,
  32. Description ("The SIDType property contains enumerated values that "
  33. "specify the type of security identifier (SID). SIDTypes include:\n"
  34. "SidTypeUser - Indicates a user SID.\n"
  35. "SidTypeGroup - Indicates a group SID.\n"
  36. "SidTypeDomain - Indicates a domain SID.\n"
  37. "SidTypeAlias - Indicates an alias SID.\n"
  38. "SidTypeWellKnownGroup - Indicates a SID for a well-known group.\n"
  39. "SidTypeDeletedAccount - Indicates a SID for a deleted account.\n"
  40. "SidTypeInvalid - Indicates an invalid SID.\n"
  41. "SidTypeUnknown - Indicates an unknown SID type.\n"
  42. "SidTypeComputer - Indicates a SID for a computer.\n"): ToSubClass,
  43. MappingStrings {"Win32API|Access Control Enumeration Types|"
  44. "SID_NAME_USE"}: ToSubClass,
  45. Values {"SidTypeUser", "SidTypeGroup", "SidTypeDomain", "SidTypeAlias",
  46. "SidTypeWellKnownGroup", "SidTypeDeletedAccount", "SidTypeInvalid",
  47. "SidTypeUnknown", "SidTypeComputer"}: ToSubClass,
  48. ValueMap {"1","2","3","4","5","6","7","8","9"}: ToSubClass]
  49. uint8 SIDType ;
  50. [read : ToSubClass, Override ("Name"): ToSubClass, key: ToSubClass,
  51. Description ("The Name property indicates the name of the Win32 "
  52. "system account on the domain specified by the Domain member of "
  53. "this class."): ToSubClass,
  54. MappingStrings {"Win32API|Network Management Structures|"
  55. "name"}: ToSubClass ]
  56. string Name ;
  57. [Fixed, Description("The LocalAccount property indicates whether the account "
  58. "is defined on the local machine. To retrieve only accounts defined "
  59. "on the local machine state a query that includes the condition "
  60. "'LocalAccount=TRUE'.")]
  61. Boolean LocalAccount;
  62. };
  63. [Dynamic, Provider ("CIMWin32"),
  64. Description ("The Win32_SystemAccount class represents a system "
  65. "account. The system account is used by the operating system and "
  66. "by services that run under Windows NT. There are many services "
  67. "and processes within NT that need the capability to logon internally "
  68. "(for example during a Windows NT installation). The system account "
  69. "was designed for that purpose; it is an internal account, does not "
  70. "show up in User Manager, cannot be added to any groups, and cannot "
  71. "have user rights assigned to it. On the other hand, the system "
  72. "account does show up on an NTFS volume in File Manager in the "
  73. "Permissions portion of the Security menu. By default, the system "
  74. "account is granted full control to all files on an NTFS volume. "
  75. "Here the system account has the same functional privileges as the "
  76. "administrator account."): ToSubClass,
  77. Locale (0x409), UUID ("{8502C4CA-5FBB-11D2-AAC1-006008C78BC7}") ]
  78. class Win32_SystemAccount:Win32_Account
  79. {
  80. [read : ToSubClass, Override ("Domain"): ToSubClass,
  81. Description ("The Domain property indicates the name of "
  82. "the Windows domain to which the system account belongs."
  83. "\nExample: NA-SALES"): ToSubClass,
  84. MappingStrings {"Win32API|Network Management Functions|"
  85. "domainname"}: ToSubClass]
  86. string Domain ;
  87. [read : ToSubClass, Override ("Name"): ToSubClass,
  88. Description ("The Name property indicates the name of the Win32 "
  89. "system account on the domain specified by the Domain member of "
  90. "this class."): ToSubClass,
  91. MappingStrings {"Win32API|Network Management Structures|"
  92. "name"}: ToSubClass ]
  93. string Name ;
  94. };
  95. [Dynamic, Provider ("CIMWin32") ,
  96. Description ("The Win32_Group class represents data about a group "
  97. "account. A group account allows access privileges to be changed "
  98. "for a list of users. \nExample: Marketing2."): ToSubClass,
  99. Locale (0x409), UUID ("{8502C4CB-5FBB-11D2-AAC1-006008C78BC7}") ]
  100. class Win32_Group:Win32_Account
  101. {
  102. [read : ToSubClass, Override ("Domain"): ToSubClass,
  103. Description ("The Domain property indicates the name of "
  104. "the Windows domain to which the group account belongs."
  105. "\nExample: NA-SALES"): ToSubClass,
  106. MappingStrings {"Win32API|Network Management Functions|"
  107. "domainname"}: ToSubClass]
  108. string Domain ;
  109. [read : ToSubClass, Override ("Name"): ToSubClass,
  110. Description ("The Name property indicates the name of the Win32 "
  111. "group account on the domain specified by the Domain member of "
  112. "this class."): ToSubClass,
  113. MappingStrings {"Win32API|Network Management Structures|"
  114. "name"}: ToSubClass ]
  115. string Name;
  116. [Implemented,
  117. Description ("The Rename() allows for the renaming of the group "
  118. "name; a key in this class. The functionality to change the key property \"Name\" "
  119. "is implemented as a method to provide a separate context for the new name "
  120. "distinguishable from the key name associated with the instance to be modified in "
  121. "this class."): ToSubClass,
  122. // Method "ReturnValue"s
  123. Values { "Success",
  124. "Instance not found",
  125. "Instance required",
  126. "Invalid parameter",
  127. "Group not found",
  128. "Domain not found",
  129. "Operation is allowed only on the primary domain controller of the domain",
  130. "Operation is not allowed on specified special groups; user, admin, local or guest.",
  131. "Other API error",
  132. "Internal error" } : ToSubClass,
  133. MappingStrings {"WMI"}: ToSubClass]
  134. uint32 Rename (
  135. [In: ToSubClass,
  136. Description ("The Name property indicates the name of the Win32 "
  137. "user account on the domain specified by the Domain member of "
  138. "this class.\nExample: thomasw"): ToSubClass,
  139. MappingStrings {"Win32API|Network Management Structures|"
  140. "name"}: ToSubClass ]
  141. string Name
  142. ); // end Rename method
  143. };
  144. [Dynamic, Provider ("CIMWin32") ,
  145. Description ("The Win32_UserAccount class contains information "
  146. "about a user account on a Win32 system."): ToSubClass,
  147. Locale (0x409), UUID ("{8502C4CC-5FBB-11D2-AAC1-006008C78BC7}") ]
  148. class Win32_UserAccount:Win32_Account
  149. {
  150. [read : ToSubClass,
  151. Description ("The AccountType property contains flags describing "
  152. "the characteristics of Win32 user account:\n"
  153. "UF_TEMP_DUPLICATE_ACCOUNT - Local user account for users whose "
  154. "primary account is in another domain. This account provides user "
  155. "access to this domain, but not to any domain that trusts this "
  156. "domain.\n"
  157. "UF_NORMAL_ACCOUNT - default account type that representing a "
  158. "typical user. \n"
  159. "UF_INTERDOMAIN_TRUST_ACCOUNT - account is for a system domain that "
  160. "trusts other domains.\n"
  161. "UF_WORKSTATION_TRUST_ACCOUNT - This is a computer account "
  162. "for a Windows NT/Windows 2000 machine that is a member of "
  163. "this domain.\n"
  164. "UF_SERVER_TRUST_ACCOUNT - account is for a system backup domain "
  165. "controller that is a member of this domain. \n"): ToSubClass,
  166. MappingStrings {"Win32API|Network Management Structures|"
  167. "USER_INFO_2|usri2_flags"}: ToSubClass,
  168. BitValues {"Temporary duplicate account","Normal account",
  169. "Interdomain trust account", "Workstation trust account",
  170. "Server trust account"}: ToSubClass,
  171. BitMap {"8", "9", "11", "12", "13"}: ToSubClass]
  172. uint32 AccountType ;
  173. [Write,
  174. read : ToSubClass,
  175. Description ("The Disabled property determines whether the Win32 "
  176. "user account is disabled.\nValues: TRUE or FALSE. If TRUE, the user "
  177. "account is disabled."): ToSubClass,
  178. MappingStrings {"Win32API|Network Management Structures|USER_INFO|"
  179. "UF_ACCOUNTDISABLE"}: ToSubClass ]
  180. boolean Disabled ;
  181. [read : ToSubClass, Override ("Domain"): ToSubClass,
  182. Description ("The Domain property indicates the name of "
  183. "the Windows domain to which the user account belongs."
  184. "\nExample: NA-SALES"): ToSubClass,
  185. MappingStrings {"Win32API|Network Management Functions|"
  186. "domainname"}: ToSubClass]
  187. string Domain ;
  188. [Write,
  189. read : ToSubClass,
  190. Description ("The FullName property indicates the full name of the "
  191. "local user.\nExample: Thomas Williams"): ToSubClass,
  192. MappingStrings {"Win32API|Network Management Structures|USER_INFO_2|"
  193. "usri2_full_name"}: ToSubClass ]
  194. string FullName ;
  195. [Write,
  196. read : ToSubClass,
  197. Description ("The Lockout property determines whether the user "
  198. "account is locked out of the Win32 system.\nValues: TRUE or FALSE. "
  199. "If TRUE, the user account is locked out."): ToSubClass,
  200. MappingStrings {"Win32API|Network Management Structures|USER_INFO_2|"
  201. "UF_LOCKOUT"}: ToSubClass ]
  202. boolean Lockout ;
  203. [read : ToSubClass, Override ("Name"): ToSubClass,
  204. Description ("The Name property indicates the name of the Win32 "
  205. "user account on the domain specified by the Domain member of "
  206. "this class.\nExample: thomasw"): ToSubClass,
  207. MappingStrings {"Win32API|Network Management Structures|"
  208. "name"}: ToSubClass ]
  209. string Name ;
  210. [Write,
  211. read : ToSubClass,
  212. Description ("The PasswordChangeable property determines whether the "
  213. "password on the Win32 user account can be changed.\nValues: TRUE or "
  214. "FALSE. If TRUE, the password can be changed."): ToSubClass,
  215. MappingStrings {"Win32API|Network Management Structures|USER_INFO_2|"
  216. "UF_PASSWD_CANT_CHANGE"}: ToSubClass ]
  217. boolean PasswordChangeable ;
  218. [Write,
  219. read : ToSubClass,
  220. Description ("The PasswordExpires property determines whether the "
  221. "password on the Win32 user account will expire.\nValues: TRUE or "
  222. "FALSE. If TRUE, the password will expire."): ToSubClass,
  223. MappingStrings {"Win32API|Network Management Structures|USER_INFO_2|"
  224. "UF_DONT_EXPIRE_PASSWD"}: ToSubClass ]
  225. boolean PasswordExpires ;
  226. [Write,
  227. read : ToSubClass,
  228. Description ("The PasswordRequired property determines whether a password is required "
  229. "on the Win32 user account.\nValues: TRUE or FALSE. If TRUE, a password "
  230. "is required."): ToSubClass,
  231. MappingStrings {"Win32API|Network Management Structures|USER_INFO_2|"
  232. "UF_PASSWD_NOTREQD"}: ToSubClass ]
  233. boolean PasswordRequired ;
  234. [Implemented,
  235. Description ("The Rename() allows for the renaming of the user account "
  236. "name; a key in this class. The functionality to change the key property \"Name\" "
  237. "is implemented as a method to provide a separate context for the new name "
  238. "distinguishable from the key name associated with the instance to be modified in "
  239. "this class."): ToSubClass,
  240. // Method "ReturnValue"s
  241. Values { "Success",
  242. "Instance not found",
  243. "Instance required",
  244. "Invalid parameter",
  245. "User not found",
  246. "Domain not found",
  247. "Operation is allowed only on the primary domain controller of the domain",
  248. "Operation is not allowed on the last administrative account.",
  249. "Operation is not allowed on specified special groups; user, admin, local or guest.",
  250. "Other API error",
  251. "Internal error" } : ToSubClass,
  252. MappingStrings {"WMI"}: ToSubClass]
  253. uint32 Rename (
  254. [In: ToSubClass,
  255. Description ("The Name property indicates the name of the Win32 "
  256. "user account on the domain specified by the Domain member of "
  257. "this class.\nExample: thomasw"): ToSubClass,
  258. MappingStrings {"Win32API|Network Management Structures|"
  259. "name"}: ToSubClass ]
  260. string Name
  261. ); // end Rename method
  262. };
  263. [Dynamic, Provider ("CIMWin32"),
  264. Description ("The Win32_NetworkLoginProfile class represents the "
  265. "network login information of a particular user on a Win32 system. "
  266. "This includes, but is not limited to, password status, access "
  267. "privileges, disk quotas, and login directory paths."): ToSubClass,
  268. Locale (0x409), UUID ("{8502C4E7-5FBB-11D2-AAC1-006008C78BC7}") ]
  269. class Win32_NetworkLoginProfile:CIM_Setting
  270. {
  271. [read: ToSubClass,
  272. Description ("The AccountExpires property specifies when the account "
  273. "will expire. This value is calculated from the number of seconds "
  274. "elapsed since 00:00:00, January 1, 1970, and is set in this format: "
  275. "yyyymmddhhmmss.mmmmmm sutc."
  276. "\nExample: 20521201000230.000000 000"): ToSubClass,
  277. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  278. "usri3_acct_expires"}: ToSubClass]
  279. datetime AccountExpires ;
  280. [read: ToSubClass,
  281. Description ("The AuthorizationFlags property contains a set of "
  282. "flags that specify the resources a user is authorized to use or "
  283. "modify."): ToSubClass,
  284. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  285. "usri3_auth_flags"}: ToSubClass,
  286. BitValues {"Printer", "Communication", "Server",
  287. "Accounts"}: ToSubClass]
  288. uint32 AuthorizationFlags ;
  289. [read: ToSubClass,
  290. Description ("The BadPasswordCount property indicates the number of "
  291. "times the user enters a bad password when logging on to a Win32 "
  292. "system.\nExample: 0"): ToSubClass,
  293. MappingStrings {"Win32API|Network Management Functions|"
  294. "NetUserEnum"}: ToSubClass ]
  295. uint32 BadPasswordCount ;
  296. [read: ToSubClass,
  297. Description ("The CodePage property specifies the code page for the "
  298. "user's language of choice. A code page is the character set used."): ToSubClass,
  299. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  300. "usri3_code_page"}: ToSubClass ]
  301. uint32 CodePage ;
  302. [read: ToSubClass,
  303. Description ("The Comment property contains a comment or description "
  304. "for this login profile."): ToSubClass,
  305. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  306. "usri3_comment"}: ToSubClass ]
  307. string Comment ;
  308. [read: ToSubClass,
  309. Description ("The CountryCode property specifies the country/region code "
  310. "for the user's language of choice."): ToSubClass,
  311. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  312. "usri3_country_code"}: ToSubClass ]
  313. uint32 CountryCode ;
  314. [read: ToSubClass,
  315. Description ("The Flags property indicates the properties available "
  316. "to this network profile. Properties that can be set include:\n"
  317. "0 - Script - A logon script executed. This value must be set for LAN "
  318. "Manager 2.0 and Windows NT/Windows 2000.\n"
  319. "1 - Account Disabled - The user's account is disabled.\n"
  320. "3 - Home Dir Required - A home directory is required. This value is "
  321. "ignored in Windows NT/Windows 2000.\n"
  322. "4 - Lockout - The account is currently locked out. For "
  323. "NetUserSetInfo, this value can be cleared to unlock a previously "
  324. "locked account. This value cannot be used to lock a previously "
  325. "unlocked account.\n"
  326. "5 - Password Not Required - No password is required.\n"
  327. "6 - Paswword Can't Change - The user cannot change the password.\n"
  328. "7 - Encrypted Test Password Allowed - Windows 2000: The user's password "
  329. "is stored under reversible encryption in the Active Directory. \n"
  330. "8 - Temp Duplicate Account - An account for users whose primary "
  331. "account is in another domain. This account provides user access "
  332. "to this domain, but not to any domain that trusts this domain. "
  333. "The User Manager refers to this account type as a local user "
  334. "account.\n"
  335. "9 - Normal Account - Default account type that represents a typical "
  336. "user.\n"
  337. "11 - InterDomain Trust Account - A permit to trust account for a "
  338. "domain that trusts other domains.\n"
  339. "12 - WorkStation Trust Account - A computer account for a Windows NT/"
  340. "Windows 2000 workstation or a Windows NT/Windows 2000 server "
  341. "that is a member of this domain.\n"
  342. "13 - Server Trust Account - A computer account for a backup domain "
  343. "controller that is a member of this domain.\n"
  344. "16 - Don't Expire Password - For Windows NT/Windows 2000: password should never "
  345. "expire on the account.\n"
  346. "17 - MNS Logon Account - MNS locon account type that represents a MNS user. \n"
  347. "18 - Smartcard Required - Windows 2000: Requires the user to log on to the user "
  348. "account with a smart card. \n"
  349. "19 - Trusted For Delegation - Windows 2000: The account is enabled for delegation."
  350. " This is a security-sensitive setting; accounts with this option enabled should be "
  351. "tightly controlled. This setting allows a service running under the account to "
  352. "assume a client's identity and authenticate as that user to other remote servers "
  353. "on the network. \n"
  354. "20 - Not Delegated - Windows 2000: Marks the account as 'sensitive'; other users "
  355. "cannot act as delegates of this user account. \n"
  356. "21 - Use DES Key Only - Windows 2000: Restrict this principal to use only Data "
  357. "Encryption Standard (DES) encryption types for keys. \n"
  358. "22 - Don't Require Preauthorization - Windows 2000: This account does not require Kerberos "
  359. "preauthentication for logon. \n"
  360. "23 - Password Expired - Indicates that password has expired."): ToSubClass,
  361. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  362. "usri3_flags"}: ToSubClass,
  363. BitValues {"Script", "Account Disabled", "Home Dir Required", "Lockout",
  364. "Password Not Required", "Paswword Can't Change", "Encrypted Test Password Allowed",
  365. "Temp Duplicate Account", "Normal Account", "InterDomain Trust Account",
  366. "WorkStation Trust Account", "Server Trust Account", "Don't Expire Password",
  367. "MNS Logon Account", "Smartcard Required", "Trusted For Delegation",
  368. "Not Delegated", "Use DES Key Only", "Don't Require Preauthorization",
  369. "Password Expired"}: ToSubClass,
  370. BitMap {"0", "1", "3", "4", "5", "6", "7", "8", "9", "11", "12", "13","16",
  371. "17", "18", "19","20","21", "22", "23"}: ToSubClass]
  372. uint32 Flags ;
  373. [read: ToSubClass,
  374. Description ("The FullName property indicates the full name of the "
  375. "user belonging to the network login profile. This string can be"
  376. "empty if the user chooses not to associate a full name with a user "
  377. "name."): ToSubClass,
  378. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  379. "usri3_full_name"}: ToSubClass ]
  380. string FullName ;
  381. [read: ToSubClass,
  382. Description ("The HomeDirectory property specifies the path "
  383. "to the home directory of the user. This string may be empty "
  384. "if the user chooses not to specify a home directory."
  385. "\nExample: \\HOMEDIR"): ToSubClass,
  386. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  387. "usri3_home_dir"}: ToSubClass ]
  388. string HomeDirectory ;
  389. [read: ToSubClass,
  390. Description ("The HomeDirectoryDrive property specifies the drive "
  391. "letter assigned to the user's home directory for logon purposes. "
  392. "\nExample: C:"): ToSubClass,
  393. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  394. "usri3_home_dir_drive"}: ToSubClass ]
  395. string HomeDirectoryDrive ;
  396. [read: ToSubClass,
  397. Description ("The LastLogoff property specifies the date and time "
  398. "the user last logged off the system. This value is calculated from "
  399. "the number of seconds elapsed since 00:00:00, January 1, 1970. A "
  400. "value of zero means that the last logoff time is unknown. The "
  401. "format of this value is yyyymmddhhmmss.mmmmmm sutc.\nExample: "
  402. "19521201000230.000000 000"): ToSubClass,
  403. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  404. "usri3_last_logoff"}: ToSubClass ]
  405. datetime LastLogoff ;
  406. [read: ToSubClass,
  407. Description ("The LastLogon property indicates the date and time "
  408. "the user last logged on to the system. This value is calculated from "
  409. "the number of seconds elapsed since 00:00:00, January 1, 1970. The "
  410. "format of this value is yyyymmddhhmmss.mmmmmm sutc.\nExample: "
  411. "19521201000230.000000 000"): ToSubClass,
  412. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  413. "usri3_last_logon"}: ToSubClass ]
  414. datetime LastLogon ;
  415. [read: ToSubClass, MaxLen(147): ToSubClass,
  416. Description ("The LogonHours property specifies the times during the "
  417. "week when the user can log on. Each bit represents a unit of time "
  418. "specified by the UnitsPerWeek member. For instance, if the unit of "
  419. "time is hourly, the first bit (bit 0, word 0) is Sunday, 0:00 to "
  420. "0:59; the second bit (bit 1, word 0) is Sunday, 1:00 to 1:59; and "
  421. "so on. If this member is set to NULL, then there is no time "
  422. "restriction. The time is set to GMT and must be adjusted for other "
  423. "time zones (for example, GMT minus 8 hours for PST)."): ToSubClass,
  424. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  425. "usri3_logon_hours"}: ToSubClass ]
  426. string LogonHours ;
  427. [read: ToSubClass,
  428. Description ("The LogonServer property contains the name of the "
  429. "server to which logon requests are sent. Server names should be "
  430. "preceded by two backslashes (\\\\). A server name with an asterisk "
  431. "(\\\\*) indicates that the logon request can be handled by any "
  432. "logon server. A null string indicates that requests are sent to "
  433. "the domain controller. \nExample: \\\\MyServer"): ToSubClass,
  434. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  435. "usri3_logon_server"}: ToSubClass]
  436. string LogonServer ;
  437. [read: ToSubClass, Units ("Bytes"): ToSubClass,
  438. Description ("The MaximumStorage property specifies the maximum "
  439. "amount of disk space available to the user. If MaximumStorage is "
  440. "set to USER_MAXSTORAGE_UNLIMITED the user is allowed to use all "
  441. "available disk space.\nExample: 10000000"): ToSubClass,
  442. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  443. "usri3_max_storage"}: ToSubClass]
  444. uint64 MaximumStorage ;
  445. [read: ToSubClass, key: ToSubClass, MaxLen (256): ToSubClass,
  446. Description ("The Name property specifies the name of the user "
  447. "account on a particular domain or machine. The number of characters "
  448. "in the name cannot exceed the value of UNLEN.\nExample: somedomain\\johndoe"): ToSubClass,
  449. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  450. "usri3_name"}: ToSubClass]
  451. string Name ;
  452. [read: ToSubClass,
  453. Description ("The NumberOfLogons property indicates the number "
  454. "of successful times the user tried to log on to this account. "
  455. "A value of 0xFFFFFFFF indicates that the value is unknown. This "
  456. "property is maintained separately on each backup domain controller "
  457. "(BDC) in the domain. To get an accurate value only the largest "
  458. "value from all BDCs should be used.\nExample: 4"): ToSubClass,
  459. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  460. "usri3_num_logons"}: ToSubClass ]
  461. uint32 NumberOfLogons ;
  462. [read: ToSubClass,
  463. Description ("The Parameters property contains space set aside for "
  464. "use by applications. This string can be null, or it can have any "
  465. "number of characters before the terminating null character. "
  466. "Microsoft products use this member to store user configuration "
  467. "information. Do not modify this information because this value is "
  468. "specific to an application."): ToSubClass,
  469. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  470. "usri3_parms"}: ToSubClass ]
  471. string Parameters ;
  472. [read: ToSubClass,
  473. Description ("The PasswordAge property indicates the length of "
  474. "time a password has been in effect. This value is measured from "
  475. "the number of seconds elapsed since the password was last changed."
  476. "\nExample: 00001201000230.000000 000"): ToSubClass,
  477. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  478. "usri3_password_age"}: ToSubClass ]
  479. datetime PasswordAge ;
  480. [read: ToSubClass,
  481. Description ("The PasswordExpires property indicates the date "
  482. "and time when the password will expire. The value is set "
  483. "in this format: yyyymmddhhmmss.mmmmmm sutc\nExample: "
  484. "19521201000230.000000 000"): ToSubClass,
  485. MappingStrings {"Win32API|Network Management Structures|"
  486. "USER_MODALS_INFO_0|usrmod0_max_passwd_age"}: ToSubClass ]
  487. datetime PasswordExpires ;
  488. [read: ToSubClass,
  489. Description ("The PrimaryGroupId property specifies the relative ID "
  490. "(RID) of the Primary Global Group for this user. The identifier "
  491. "verifies the primary group to which the user's profile belongs."): ToSubClass,
  492. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  493. "usri3_primary_group_id"}: ToSubClass ]
  494. uint32 PrimaryGroupId ;
  495. [read: ToSubClass,
  496. Description ("The privileges property specifies the level of "
  497. "privilege assigned to the usri3_name property."): ToSubClass,
  498. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  499. "usri3_priv"}: ToSubClass,
  500. Values {"Guest", "User", "Administrator"}: ToSubClass]
  501. uint32 Privileges ;
  502. [read: ToSubClass,
  503. Description ("The Profile property specifies a directory path to the "
  504. "user's profile. This value can be a null string, a local absolute "
  505. "path, or a UNC path. A user profile contains settings that are "
  506. "customizable for each user such as the desktop colors."
  507. "\nExample: C:\\Winnt"): ToSubClass,
  508. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  509. "usri3_profile"}: ToSubClass ]
  510. string Profile ;
  511. [read: ToSubClass,
  512. Description ("The ScriptPath property indicates the directory path "
  513. "to the user's logon script. A logon script automatically executes "
  514. "a set of commands each time a user logs on to a system."
  515. "\nExample: C:\\win\\profiles\\ThomasSteven"): ToSubClass,
  516. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  517. "usri3_script_path"}: ToSubClass ]
  518. string ScriptPath ;
  519. [read: ToSubClass,
  520. Description ("The UnitsPerWeek property indicates the number of "
  521. "time units the week is divided into. It is used with the "
  522. "LogonHours property to limit user access to the computer."
  523. "\nExample: 168 (hours per week"): ToSubClass,
  524. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  525. "usri3_units_per_week"}: ToSubClass]
  526. uint32 UnitsPerWeek ;
  527. [read: ToSubClass,
  528. Description ("The UserComment property contains a user defined "
  529. "comment or description for this profile."): ToSubClass,
  530. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  531. "usri3_usr_comment"}: ToSubClass ]
  532. string UserComment ;
  533. [read: ToSubClass,
  534. Description ("The UserId property specifies the relative ID "
  535. "(RID) of the user. The identifier verifies that the user exists "
  536. "and is unique to this domain."): ToSubClass,
  537. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  538. "usri3_user_id"}: ToSubClass ]
  539. uint32 UserId ;
  540. [read: ToSubClass,
  541. Description ("The UserType property indicates the type of account "
  542. " the user has privileges to."): ToSubClass,
  543. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  544. "usri3_flags"}: ToSubClass,
  545. Values {"Normal Account","Duplicate Account","Workstation Trust Account",
  546. "Server Trust Account", "Interdomain Trust Account","Unknown"}: ToSubClass,
  547. ValueMap {"Normal Account","Duplicate Account","Workstation Trust Account",
  548. "Server Trust Account", "Interdomain Trust Account","Unknown"}: ToSubClass]
  549. string UserType ;
  550. [read: ToSubClass,
  551. Description ("The Workstations property contains the names of "
  552. "workstations from which the user can log on. Up to eight "
  553. "workstations can be specified; the names must be separated by "
  554. "commas (,). A null string indicates no restrictions. To disable "
  555. "logons from all workstations to this account, set the "
  556. "UF_ACCOUNTDISABLE in the Flags property of this class."): ToSubClass,
  557. MappingStrings {"Win32API|Network Management Structures|USER_INFO_3|"
  558. "usri3_workstations"}: ToSubClass ]
  559. string Workstations ;
  560. };
  561. [Dynamic, Provider ("CIMWin32"),
  562. Description ("The Win32_GroupUser class represents an "
  563. "association between a group and an account that "
  564. "is a member of that group."): ToSubClass,
  565. Locale (0x409), UUID ("{8502C508-5FBB-11D2-AAC1-006008C78BC7}") ]
  566. class Win32_GroupUser:CIM_Component
  567. {
  568. [read: ToSubClass, key: ToSubClass, Override ("GroupComponent"): ToSubClass,
  569. Description ("The GroupComponent reference represents a group "
  570. "that the account is a member of."): ToSubClass,
  571. MappingStrings {"WMI|Win32_Group"}: ToSubClass]
  572. Win32_Group REF GroupComponent;
  573. [read: ToSubClass, key: ToSubClass, Override ("PartComponent"): ToSubClass,
  574. Description ("The PartComponent reference represents a user or "
  575. "system account that is a part of a group of accounts."): ToSubClass,
  576. MappingStrings {"WMI|Win32_Account"}: ToSubClass]
  577. Win32_Account REF PartComponent;
  578. };
  579. [Abstract,
  580. Description ("The Win32_Session class defines state information "
  581. "specific to the interaction between a user and a resource, typically "
  582. "a computer system or a terminal session."),
  583. Locale (0x409)]
  584. class Win32_Session: CIM_logicalElement
  585. {
  586. [Description ("The StartTime property represents the time at which "
  587. "the session started.")]
  588. DateTime StartTime;
  589. };
  590. [Dynamic, Provider ("CIMWin32"),
  591. Description ("The Win32_LogonSession class describes the logon session "
  592. "or sessions associated with a user who has logged on to Windows NT or "
  593. "Windows 2000."): ToSubClass, Locale (0x409),
  594. UUID ("{9083C21E-7D58-4e0e-BC30-0BC8922AFB8B}")]
  595. class Win32_LogonSession: Win32_Session
  596. {
  597. [key, Description("The LogonId is the ID assigned to the logon session. "
  598. "The application that initiated the session should have called "
  599. "AllocateLocallyUniqueId in order to generate this ID. ")]
  600. String LogonId;
  601. [Description("The AuthenticationPackage is the name of "
  602. "the subsystem used to authenticate the logon session. ")]
  603. String AuthenticationPackage;
  604. [Description("The LogonType is a numeric value indicating "
  605. "what type of logon session this is. \n"
  606. "System - "
  607. "Interactive - This logon type is intended for users who will be interactively using the machine, such as a user being logged on by a terminal server, remote shell, or similar process. \n"
  608. "Network - This logon type is intended for high performance servers to authenticate clear text passwords. LogonUser does not cache credentials for this logon type. \n"
  609. "Batch - This logon type is intended for batch servers, where processes may be executing on behalf of a user without their direct intervention; or for higher performance servers that process many clear-text authentication attempts at a time, such as mail or web servers. LogonUser does not cache credentials for this logon type.\n"
  610. "Service - Indicates a service-type logon. The account provided must have the service privilege enabled.\n"
  611. "Proxy - Proxy logon. This logon type is not supported.\n"
  612. "Unlock - This logon type is intended for GINA DLLs logging on users who will be interactively using the machine. This logon type allows a unique audit record to be generated that shows when the workstation was unlocked. \n"
  613. "Network Cleartext - Windows 2000: This logon type preserves the name and password in the authentication packages, allowing the server to make connections to other network servers while impersonating the client. This allows a server to accept clear text credentials from a client, call LogonUser, verify that the user can access the system across the network, and still communicate with other servers. \n"
  614. "New Credentials - Windows 2000: This logon type allows the caller to clone its current token and specify new credentials for outbound connections. The new logon session has the same local identify, but uses different credentials for other network connections. \n"),
  615. ValueMap {"2", "3", "4", "5", "7", "8", "9"},
  616. Values {
  617. "Interactive",
  618. "Network",
  619. "Batch",
  620. "Service",
  621. "Unlock",
  622. "NetworkCleartext",
  623. "NewCredentials"}]
  624. uint32 LogonType;
  625. };
  626. [Abstract,
  627. Description ("The Win32_SubSession association defines relationships "
  628. "between sessions where one session is a part of or utilizes another "
  629. "session for example where a Terminal session uses a Logon Session."),
  630. Locale (0x409)]
  631. class Win32_SubSession: CIM_Dependency
  632. {
  633. [Description ("The Antecedent reference is the session in the "
  634. "SubSession association that has a subsession.")]
  635. Win32_Session ref Antecedent;
  636. [Description ("The Dependent reference is the session in the "
  637. "SubSession association that is the subsession.")]
  638. Win32_Session ref Dependent;
  639. };
  640. [Dynamic, Provider ("CIMWin32"),
  641. Description ("The Win32_LoggedOnUser association represents the "
  642. "relationship between a session and the user account using that "
  643. "session. Although the association will usually be one to one - "
  644. "users are possible that involve more than one session. At the "
  645. "termination of the session the association instance is deleted."): ToSubClass,
  646. Locale (0x409), UUID ("{8BB5B3EC-E1F7-4b39-942A-605D5F55789A}")]
  647. class Win32_LoggedOnUser: CIM_Dependency
  648. {
  649. [key, Description ("The Antecedent reference is the Account used "
  650. "in the initiation of this session. The account could be either "
  651. "a user account or a system account.")]
  652. Win32_Account ref Antecedent;
  653. [key, Description ("The Dependent reference is the session that the "
  654. "account is currently using.")]
  655. Win32_LogonSession ref Dependent;
  656. };
  657. [Abstract,
  658. Description ("The Win32_SessionResource association represents "
  659. "the relationship between a session and the resources that the "
  660. "session provides access to."),
  661. Locale (0x409)]
  662. class Win32_SessionResource: CIM_Dependency
  663. {
  664. [Description ("The Antecedent reference represents resources "
  665. "used by this session."),
  666. Override("Antecedent")]
  667. Win32_LogicalElement ref Antecedent;
  668. [Description ("The Dependent reference represents the session "
  669. "using the resource."),
  670. Override("Dependent")]
  671. Win32_Session ref Dependent;
  672. };
  673. [Dynamic, Provider ("CIMWin32"),
  674. Description ("The Win32_SessionProcess represents the "
  675. "association between a logon-session and the processes "
  676. "belonging to that session.") : ToSubClass,
  677. Locale (0x409), UUID ("9CD8E1CE-0D27-4a41-AADE-F8D200230FF4")]
  678. class Win32_SessionProcess : Win32_SessionResource
  679. {
  680. [Description ("The Dependent reference represents the process "
  681. "associated with the session."),
  682. Override("Dependent"),
  683. Key]
  684. Win32_Process ref Dependent;
  685. [Description ("The Antecedent reference represents the session "
  686. "which is related to the process."),
  687. Override("Antecedent"),
  688. Key]
  689. Win32_LogonSession ref Antecedent;
  690. };