[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-17-2007, 08:22 PM   #1
Hiro
Rear Admiral Upper Half
 
Hiro's Avatar
 
Join Date: Feb 2001
Posts: 3,654
AD Experts - any available

Need some help with AD if anyone has some time for me to pick their brains.
Hiro is offline   Reply With Quote
Old 08-20-2007, 05:41 AM   #2
Jeffbx
Fleet Admiral
 
Jeffbx's Avatar
 
Join Date: Mar 2000
Location: Michigan
Posts: 9,390
Send a message via MSN to Jeffbx
I'm no expert, but maybe I can help - what's the problem?
Jeffbx is offline   Reply With Quote
Old 08-20-2007, 08:45 PM   #3
Hiro
Rear Admiral Upper Half
 
Hiro's Avatar
 
Join Date: Feb 2001
Posts: 3,654
My company is running an AD that's in Win2k compatibility mode because some of our DC's are still 2k server. Because of this, commands like "dsquery" are not usable from the command line.

What I'm trying to do is export three values from all users in AD. NT ID, Last Name & First Name, and their last logon date.

Any idea how to do this?
Hiro is offline   Reply With Quote
Old 08-20-2007, 10:37 PM   #4
gwilks98
Vice Admiral
 
gwilks98's Avatar
 
Join Date: Aug 2000
Location: StL
Posts: 4,300
Send a message via AIM to gwilks98
Are you sure that's the reason why you don't have dsquery available to you? I have a "MS scripting" book from MS press, meant specifically for Win2K and it clearly suggests these commands for AD scripting.

Is it possible something else is blocking your DS commands?
__________________
"I know the pieces fit, cause I watched them fall away."

"Cold silence has
A tendancy to
Atrophy any
Sense of compassion."

MJK
gwilks98 is offline   Reply With Quote
Old 08-21-2007, 07:14 AM   #5
Hiro
Rear Admiral Upper Half
 
Hiro's Avatar
 
Join Date: Feb 2001
Posts: 3,654
That's the thing, I honestly don't know. I'm still learning AD and it's not an easy task...and my companies AD responsibility was sort of dropped in my lap before I was even remotely ready and they aren't providing any training. It's kind of screwed up.
Hiro is offline   Reply With Quote
Old 08-21-2007, 10:08 AM   #6
Jeffbx
Fleet Admiral
 
Jeffbx's Avatar
 
Join Date: Mar 2000
Location: Michigan
Posts: 9,390
Send a message via MSN to Jeffbx
When you try to run dsquery, does it give you any type of error message?
Jeffbx is offline   Reply With Quote
Old 08-24-2007, 10:52 AM   #7
Hiro
Rear Admiral Upper Half
 
Hiro's Avatar
 
Join Date: Feb 2001
Posts: 3,654
www.corsec.org/scripts/LastLogon-User.vbs

That's a pretty good script that I found and massively edited. It exports NT ID, Last name / First name, Disabled / Active account and Last Logon Date.

Enjoy.
Hiro is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 01:56 PM.