![]() |
| |||||||
| Notices |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| We need to find the localized name of the LocalSystem account. Onenglish windows it is 'NT AUTHORITY\SYSTEM', but on other OSs it is something else. (e.g. In German it is 'NT AUTHORITÄT\SYSTEM ) The SID of the LocalSystem account is S-1-5-18', so we tried using Win32_Group class/table with SID='S-1-5-18' (On an english Windows). The Name property is 'SYSTEM', but 'NT AUTHORITY' is not found in any member of the Win32_Group. How do we get the full name of an account? TIA Boaz Ben-Porat Milestone systems | Guest
Posts: n/a
|
|
| | #2 (permalink) | |
| "Boaz Ben-Porat" wrote: Quote:
Try Win32_SID. This class can not be enumerated, so you can't use a query. This code gives "NT AUTHORITY\SYSTEM" (I can't test it on a localized Windows system) ' VBScript source code Set objWMI = GetObject _ ("winmgmts:root\cimv2") Set objSid = objWMI.Get _ ("Win32_SID.SID='S-1-5-18'") WScript.Echo objSid.ReferencedDomainName _ & "\" & objSid.AccountName -- urkec | Guest
Posts: n/a
| |
|
![]() |
| Tags |
| None |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't save file in localized folder | Carl | Windows Vista File Management | 2 | 08-06-2007 09:58 PM |
| LocalSystem cannot enumerate domains on Windows Vista | omar.estrada@gmail.com | Windows Vista Security | 0 | 05-28-2007 09:19 PM |
| System shutdown initiated by NT AUTHORITY\SYSTEM | Kent W. England [MVP] | Windows XP Security & Administration | 0 | 08-12-2003 05:41 AM |
| Win XP error msg, system shutdown, NT authority system | Carol | Windows XP Performance & Maintenance | 9 | 08-12-2003 04:01 AM |
| System shuts down with this Authority/System message, why? | Josh Collins | Windows XP Basics | 0 | 08-11-2003 06:51 PM |