473,382 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Firt Admin Account

How can I check if a UserGroup has the First Admin Account in it?
Thanks in advance
Nov 17 '05 #1
1 956
"Coimbras" <Co******@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
How can I check if a UserGroup has the First Admin Account in it?


What is the First Admin Account?

Assuming for a moment that you know what that is, I think that
NetUserGetGroups() or NetUserGetLocalGroups() will get you the information
that you want. Both of these functions take the name of a server as their
first parameter or NULL for the local computer. If you don't want that, you
can use DsGetDCName() to "translate" the name of a domain to the name of its
domain controller machine.

As for the account, take a look at this link:

http://support.microsoft.com/default...;en-us;q243330

It enumerates well-known SIDs (security identifiers). You can use
LookupAccountSID() to get the user name and the domain corresponding to that
SID which you can pass to the functions above.

Regards,
Will

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Google Mike | last post by:
You know, while working on my moonlight corporation's LAMP project at home this weekend, I couldn't help but wonder if people writing similar projects are solving similar problems with having to...
1
by: Sushant Bhatia | last post by:
Hi. I'm working at Arizona State University on a project that is developing software for individuals who are blind and I need to be able to setup an App that we are creating to run with...
11
by: AnhTai | last post by:
Hi all, I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install from blastwave). This is my first time with MySQL so I don't have any exp with it. I have some troubles as: -...
0
by: Chad Dressler | last post by:
I'm trying to use System.DirectoryServices to add a domain user to a local group via a web application which runs under the identity of a local admin account. Is this possible? I can...
3
by: bmoore | last post by:
I am just beginning to implement user-level security in Access 2003. I created a user account and it is assigned to the users group. I would like to assign a password for this account (or for the...
2
RAJSPY
by: RAJSPY | last post by:
Hi all, I am trying to get an admin process started under a user account. I want to start a process that can install programs under this user account. Our company now has a full admin access...
5
by: Adminwannabe | last post by:
Hi sir hope you could help me in my siple prob. im try to run a program i installed in an admin account (cyber cafe) in other user (guest) and it said put cyber cafe in a service to use in a non...
0
by: Big Charles | last post by:
Hello, Programming in VS2003-ASP.NET 1.1, I have this problem: Using DirectoryEntry and without any admin user, how can I check if a domain account, that try to login, has expired? Scenario: User...
2
by: Angahran | last post by:
I'm hoping someone can help me. I was trying to backup our eqdkp database and managed to remove all the admin access from the admin account :( I cannot use phpmyadmin or mysql to directly access...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.