Solved

Delphi: How to Tell if Given UserName is Windows Administrator

Posted on 2014-02-06
2
426 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

Technology Partners: 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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