Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
RE: Active Directory Last logon time script help
Logged in as: Guest
arrSession:exec spGetSession 2,2,40772
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> RE: Active Directory Last logon time script help
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
<<
< prev
1
[2]
Login
Message
<< Older Topic
Newer Topic >>
RE: Active Directory Last logon time script help -
12/14/2006 3:51:31 AM
mcam9
Posts: 25
Score: 0
Joined: 10/12/2006
Status:
offline
apologies, i have put a couple of them in this block of code to see if it is making the loop:
If objRecordset.RecordCount > 0 Then ' if UPN & disabled mask were matched together during query 'Produce output based on results : modify from here on to produce different input for updated DB vbs script Wscript.Echo "Beginning..." WScript.Echo "Last Logon Time: " & GetLast(objRecordSet.Fields("lastlogon").Value) objTextFile.WriteLine strUserNameForOutput &"," & strUserDomainForOutput ' UPN found as disabled Wscript.Echo "Finish..." End If
(in reply to
ebgreen
)
Post #: 21
RE: Active Directory Last logon time script help -
12/14/2006 3:53:08 AM
ebgreen
Posts: 4969
Score: 31
Joined: 7/12/2005
Status:
offline
And what output do you see from the script?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:
http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm
(in reply to
mcam9
)
Post #: 22
RE: Active Directory Last logon time script help -
12/18/2006 1:39:22 AM
mcam9
Posts: 25
Score: 0
Joined: 10/12/2006
Status:
offline
i see a message box saying 'beginning' then one saying 'finishing'. the other message box doesnt appear.
(in reply to
ebgreen
)
Post #: 23
Page:
<<
< prev
1
[2]
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> RE: Active Directory Last logon time script help
Page:
<<
< prev
1
[2]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI