Solved

Delphi: How to Tell if Given UserName is Windows Administrator

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

26 Experts available now in Live!

Get 1:1 Help Now