Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AD Account in use

Status
Not open for further replies.

Calz

Technical User
Nov 14, 2001
103
FR
Is there a way to see if a user account in AD is being used? I'm looking at service accounts so they're not directly logged on with.
 
Not quite sure whether you mean user account or local service for a service(eg the log on as property in services).
If so, you could try using vbscript to query win32_service and the (I think this is it) StartName property.

If it is a user account you're trying to query, you can use psloggedon from sysinternals.
 
Hmmm kind of in the right direction... but more in AD.

For example there's a user container with 20 accounts in it, out of those 20 15 may be used for service accounts so they never actually logon as in get a profile etc but they are used for resource permissioning. I'm trying to find out when they are used and by what if possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top