Solved

Delphi: How to Tell if Given UserName is Windows Administrator

Posted on 2014-02-06
2
423 Views
Last Modified: 2014-02-06
In Delphi (XE4), is it possible to check if a given user name is a Windows Administrator?

(I have found plenty of examples of testing the current user but I need to be able to check any given user name, whether the current user or not.)
0
Comment
Question by:plumothy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39840990
How are you getting the user names?

What is the purpose?

mlmcc
0
 

Author Comment

by:plumothy
ID: 39841196
My apologies - in attempting to answer your question, I have realised that I do not need to do any checks on the given user name (because Windows will do it anyway before using it).

So, I shouldn't have even asked the question in the first place!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 105
When i run adoquery my application freezes 26 188
IP without any Dots 1 51
Firemonkey Listview item popup menu ? 1 26
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question