Solved

local Admin or not - Dos command

Posted on 2010-11-09
4
740 Views
Last Modified: 2012-05-10
would there be a command that can be run from the DOS prompt or RUN windows for a user to quickly check if she is a local Admin or not?

thanks
0
Comment
Question by:anushahanna
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
Antyrael earned 500 total points
ID: 34091819
The command "net localgroup administrators" shows a listing of all members of the local administrators group.
If the list isn't too long, which it shouldn't be, you can see at a glance if a user is in it or not.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34092822
sounds good -

can anyone run this command, or only those with Local Admin previledge?
0
 
LVL 4

Assisted Solution

by:Antyrael
Antyrael earned 500 total points
ID: 34092865
Anyone can run this command, but only administrators can use it to add or remove users to this local administrators group.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34092888
great- helped..
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CMD shell elevation.js 4 64
question about windows batch/script 3 60
active directory 5 60
how to run this deletion request 4 21
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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