HostWeb Forums » Microsoft Server Operating Systems » microsoft.public.win2000.group_policy » Re: Login script
Topic: Re: Login script
You can also check for the current logged-on user group membership:
C:\> WHOAMI /GROUPS | find /i "BUILTIN\Administrators"
This is the result on my computer:
[Group 3] = "BUILTIN\Administrators"
---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> Adding to Pegasus... you can check the %LogonServer% value. If the
> value equels the local computer name then the user is logged-on
> locally.
>
> ---
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>> Hi
>>
>> Does anyone know or have a script that will send me an email when a
>> user
>> logs into a WinXP computer with LOCAL ADMIN credentials (not with
>> domain
>> credentials)?
>> We're assuming that some of our company users know local admin
>> password, so
>> we want to know if someone tries or logs into his computer like local
>> admin?
>> Is this possible, or how can this be done?
>> Thank you in advance !
>> Regards,
>> Miha
Replies below ↓