Solved

Delphi: How to Tell if Given UserName is Windows Administrator

Posted on 2014-02-06
2
412 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
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
How are you getting the user names?

What is the purpose?

mlmcc
0
 

Author Comment

by:plumothy
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now