User Accounts

  • Thread starter Thread starter ^^*Patty*^^
  • Start date Start date
P

^^*Patty*^^

Under User Accounts (controluserpasswords2) I have 5 accounts.
User User Group
Administrators Administrator Account Under Properties Description it
states
Built in
Adminstrator for Computer (I
am not sure when this was established it was
not always there.)
ASPNET User Account Under Properties
Description it states Account
used for running ASPNet( I have no idea
what this is, or when it was established.)

The other four accounts consist of accounts I have set up & the guest
account.

I have been using my computer as owner/administrator (I know this is not
recommended). However, before when I looked in task manager, my user name
(owner) would show (ie. I was the one signed in using the computer as an
administrator.) Now it no longer shows any names in the task manager no
matter which account I sign into.

Am I somehow now using the default Administrator Account? Is there a way to
confirm this? I'm not sure, like I said the "Built In" Administrator
Account & ASPNET Account were created at some point (not too long ago) that
I am unaware of. Can anybody lead me in some direction to protect the
"Built In" (default) Administrator Account? If I ever somehow get locked
out of my computer, I want to be able to use this account. Is this the
reason why no users are showing in Task Manager? I looked in the Event
Viewer, but I'm afraid I don't know enough to understand it. Sorry for the
length of this message. Wanted to give as much info as possible. Thanks
 
^^*Patty*^^ said:
[snip]

Am I somehow now using the default Administrator Account?
Is there a way to confirm this?
Hi

Run the vbscript below, it will tell you (put it in a
file with .vbs as file extension name and then run it by
double clicking on the file).


'--------------------8<----------------------
sUserSid = GetLocalUserSID

' Account ending with -500 is builtin Administrator account
If Right(sUserSID, 4) = "-500" Then
WScript.Echo "Current user is the built-in administrator!"
Else
WScript.Echo "Current user is not the built-in administrator!"
End If


Function GetLocalUserSID()

Dim sUserSID, oWshNetwork, oUserAccount

Set oWshNetwork = CreateObject("WScript.Network")
If oWshNetwork.ComputerName = oWshNetwork.UserDomain Then
Set oUserAccount = GetObject( _
"winmgmts://" & oWshNetwork.ComputerName & "/root/cimv2") _
.Get("Win32_UserAccount.Domain='" & oWshNetwork.ComputerName & "'" _
& ",Name='" & oWshNetwork.UserName & "'")
sUserSID = oUserAccount.SID
Else
sUserSID = ""
End If
GetLocalUserSID = sUserSID
End Function
'--------------------8<----------------------
 
Thank you so much. It told me I am NOT the defualt user.

Torgeir Bakken (MVP) said:
^^*Patty*^^ said:
[snip]

Am I somehow now using the default Administrator Account?
Is there a way to confirm this?
Hi

Run the vbscript below, it will tell you (put it in a
file with .vbs as file extension name and then run it by
double clicking on the file).


'--------------------8<----------------------
sUserSid = GetLocalUserSID

' Account ending with -500 is builtin Administrator account
If Right(sUserSID, 4) = "-500" Then
WScript.Echo "Current user is the built-in administrator!"
Else
WScript.Echo "Current user is not the built-in administrator!"
End If


Function GetLocalUserSID()

Dim sUserSID, oWshNetwork, oUserAccount

Set oWshNetwork = CreateObject("WScript.Network")
If oWshNetwork.ComputerName = oWshNetwork.UserDomain Then
Set oUserAccount = GetObject( _
"winmgmts://" & oWshNetwork.ComputerName & "/root/cimv2") _
.Get("Win32_UserAccount.Domain='" & oWshNetwork.ComputerName & "'" _
& ",Name='" & oWshNetwork.UserName & "'")
sUserSID = oUserAccount.SID
Else
sUserSID = ""
End If
GetLocalUserSID = sUserSID
End Function
'--------------------8<----------------------


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 
Back
Top