Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP WMI

Notices

Reply

Find localized name of a the LocalSystem account (NT AUTHORITY\SYSTEM)

 

LinkBack Thread Tools Display Modes
Old 05-06-2008, 08:23 AM   #1 (permalink)
Default Find localized name of a the LocalSystem account (NT AUTHORITY\SYSTEM)

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




Boaz Ben-Porat
Guest
 
Posts: n/a
Reply With Quote  
Old 05-07-2008, 04:51 PM   #2 (permalink)
Default RE: Find localized name of a the LocalSystem account (NT AUTHORITY\SYS

"Boaz Ben-Porat" wrote:
Quote:
> 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
>
>
>
>
>

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
urkec
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT. The time now is 06:26 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90