Re: vbscript, searching Active directory using ADODB type mismatch error

From: Paul (paulwood11_at_hotmail.com)
Date: 04/26/04

  • Next message: Tom Lavedas: "RE: How we write the results of script into an OS text file ?"
    Date: Mon, 26 Apr 2004 12:31:06 -0700
    
    

    Thanks Richard, that part worked.

    My next question regrading this subject is that I am incorporating this into your original last logon dates vb script from your web site.

    How do I output the name, description, & home directory after the loop runs to determine the last login date in the script below?

    I tried working on it myself, by puting the output at the end of original loop without any sucess. It just outputs the incorrect last login date. I have also tried adding the line below but I was unable to add the additional fields to the objlist in the original loop so that line does not work either.

    ' LastLogon.vbs
    ' VBScript program to determine when each user in the domain last logged
    ' on.
    '
    ' ----------------------------------------------------------------------
    ' Copyright (c) 2002 Richard L. Mueller
    .
    .
    .
    .
    .

    ' Output latest lastLogon date for each user.
    For Each strUser In objList
      'Wscript.Echo strUser & " ; " & objList(strUser)
    Wscript.Echo objList(strname) & " ; " & objList(strdescription) & " ; " & objList(strhomedirectory) & " ; " & objList(strUser)
    Next

    Thank You,

    Paul

         
        


  • Next message: Tom Lavedas: "RE: How we write the results of script into an OS text file ?"

    Relevant Pages

    • [NT] VBScript Handling in IE can Allow Web Pages to Read Local Files
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Frames are used in Internet Explorer to provide for a fuller browsing ... The vulnerability could only be used to view files. ... The flaw allows script to violate IE's ...
      (Securiteam)
    • Re: Problems with PrintReady javascript and published Frontpage 2003 web site
      ... 2003 web site ... > In your script delete the 5 lines you have added between ... > Then Test in Browser before you publsih ... > | link it opens a new windows and my browser freezes. ...
      (microsoft.public.frontpage.client)
    • Re: Create IIS Web Site via ADSI scripting - ISAPI Error
      ... It wasn't the ISAPI filter or how it was being added but how the site was being set up via the script. ... Used the web MetaSchema to compare properties/settings for a manual and scripted web site which helped 2 raise these issues. ... I need to create an IIS Web Site but I want to script this and as part of ...
      (microsoft.public.inetserver.iis)
    • Re: Help!
      ... script that makes a web site automatically adjust to different ... If you remember having heard something about a script for this purpose, ... was probably a script which detects the monitor resolution and redirects the ... user to a page supposedly designed for that resolution. ...
      (microsoft.public.frontpage.programming)
    • Re: Help!
      ... | script that makes a web site automatically adjust to different ... | If you remember having heard something about a script for this purpose, ... | was probably a script which detects the monitor resolution and redirects ... | Web Design Contract, Estimate Request Form, Estimate Worksheet ...
      (microsoft.public.frontpage.programming)

    Loading