Re: User Name
Try to read from HKEY_LOCAL_MACHINE \ Security
If user can read it, so is an admin :)
"Senthil" <Senthil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C709D606-2C33-40A2-9230-8E0119F569FA@xxxxxxxxxxxxxxxx
> Hi All,
> I have written an application and i want that application to be
> invoked only by administrators. I used GetUserNameEx to retive the user
> and
> the group he belongs to. But that does not say which group the user
> belongs
> to.could anyone let me know how can i prevent other users from launching
> the
> application?
> Thanks,
> Senthil
>
.
Relevant Pages
- SUMMARY WAS: OT? Philosophical Question on SA responsibilities
... helpful for managers interested in hiring new administrators. ... Would you go thru the 14,600 messages in root and admin ... If I was a new SA I would if encountering a security hole, ... I can see some use for the passwd -s part of the crontab script, ... (SunManagers) - Re: AD and hidden admin shares
... I have noticed that when a client machine joins the AD domain, the ability to use Simple File Sharing goes away, and the hidden admin shares are available for remote connections (you have to connect to C$, and only local administrators can do it). ... This can be serious security issue. ... (microsoft.public.windows.server.active_directory) - Re: Identifying if CurrentUser() is in the Admins Security Group
... Start with the FAQ for ACCESS security: ... It contains some code that will allow you to test which group a user belongs ... > CurrentUser) belongs to the default 'admins' security group? ... (microsoft.public.access.security) - Re: Joining a Domain?
... the membership can only belongs to one domain at once sorry if that ... >>> Admin guy I was told only admin can help m/c to join a domain!!! ... >> workstation belongs to. ... > administrative help. ... (microsoft.public.win2000.active_directory) - Domain rights
... domain admin group. ... If user logs in locally only app runs ... if users domain account is added to local admin ... If a user belongs to domain ... (microsoft.public.win2000.security) |
|