Win32_SystemAccount class
The Win32_SystemAccount WMI class represents a system account. The system account is used by the operating system and services that run under Windows NT. There are many services and processes within Windows NT that need the capability to logon internally, for example, during a Windows NT installation. The system account was designed for that purpose.
The system account is an internal account that does not show up in User Manager, cannot be added to any groups, and cannot have user rights assigned to it. However, the system account does show up on an NTFS file system volume in file manager, which is located in the Permissions section of the Security menu. By default, the system account is granted full control to all files on an NTFS file system volume, which means that the system account has the same functional privileges as the administrator account.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_SystemAccount : Win32_Account
{
string Caption;
string Description;
string Domain;
datetime InstallDate;
boolean LocalAccount;
string Name;
string SID;
uint8 SIDType;
string Status;
};
Members
The Win32_SystemAccount class has these types of members:
Properties
The Win32_SystemAccount class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
Short description of the object— a one-line string.
- Description
-
- Data type: string
- Access type: Read-only
Description of the object.
- Domain
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
Name of the Windows domain to which the system account belongs.
Example: "NA-SALES"
- InstallDate
-
- Data type: datetime
- Access type: Read-only
Object was installed. This property does not need a value to indicate that the object is installed.
- LocalAccount
-
- Data type: boolean
- Access type: Read-only
Windows Server 2003 and Windows XP: If true, the account is defined on the local machine. To only retrieve accounts defined on the local machine, use a query that includes "LocalAccount=TRUE". - Name
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
Name of the Windows system account on the domain specified by the Domain property of this class.
- SID
-
- Data type: string
- Access type: Read-only
Security identifier (SID) for this account. A SID is a string value of variable length used to identify a trustee. Each account has a unique SID that is issued by an authority (such as a Windows domain), and is stored in a security database. When a user logs on, the system retrieves the user's SID from the database and places it in the user's access token. The system uses the SID in the user's access token to identify the user in all subsequent interactions with Windows security. When a SID has been used as the unique identifier for a user or group, it cannot be used again to identify another user or group.
- SIDType
-
- Data type: uint8
- Access type: Read-only
Enumerated values that specify the type of SID.
Value Meaning - 1
SidTypeUser
- 2
SidTypeGroup
- 3
SidTypeDomain
- 4
SidTypeAlias
- 5
SidTypeWellKnownGroup
- 6
SidTypeDeletedAccount
- 7
SidTypeInvalid
- 8
SidTypeUnknown
- 9
SidTypeComputer
- Status
-
- Data type: string
- Access type: Read-only
- Qualifiers: MaxLen (10)
Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states.
The values are:
- "OK"
- "Error"
- "Degraded"
- "Unknown"
- "Pred Fail"
- "Starting"
- "Stopping"
- "Service"
Remarks
The Win32_SystemAccount class is derived from Win32_Account.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012