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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by fosterr2000

  1. fosterr2000

    returning arguments

    You could create an enviornment variable if it is a very small amount of data that you wish to return.
  2. fosterr2000

    Find roaming profile users

    Mark, Good idea, I like it.
  3. fosterr2000

    Find roaming profile users

    Yes. It will also include disabled users, just keep that in mind. It you need to eliminate all disabled users then I can help with that, but some admins delete old users while others make the accounts disabled. Let me know if you would like to filter out the disabled accounts. Glad I could help.
  4. fosterr2000

    Find roaming profile users

    This will list the users and there profile path out to a csv text file. Don't forget to replace "YourDomainHere" with your domain. Set fso = CreateObject("Scripting.FileSystemObject") set txtStream = fso.OpenTextFile("UserProfileList.csv", 2, True) txtStream.WriteLine "Begin : " & date & " " &...
  5. fosterr2000

    Can't see the error

    Try it without the ; all together?
  6. fosterr2000

    Read machine name and bios version and write to MSSQL database

    Something like this: Set objConn = CreateObject("ADODB.Connection") objConn.Open "Driver={SQL Server};" & _ "Server=Your Server;" & _ "Database=Your Database;" & _ "user id=sa;" & _ "password=Your SA Password;" Set objRSSQL...
  7. fosterr2000

    connection string

    Does your web server have Access installed?
  8. fosterr2000

    Script to get SMTP server?

    This information is in AD. It is in the attribute msExchHomeServerName for each user object. This will enumerate the AD tree and return the name and Mailserver for each user. '****************Setup ADSI connection and populate ADSI Collection************************************************...
  9. fosterr2000

    pulling OS from AD

    Try wscript.echo objMember.Name & " - " & objMember.operatingSystem & " - " & objMember.operatingSystemVersion
  10. fosterr2000

    open recordset for update with order by

    Try adOpenStatic instead of adOpenKeyset as such maybe. mySourceRecordset.Open "Select * from tbltempmkt", mySourceConn, adOpenStatic, adLockOptimistic Good luck.
  11. fosterr2000

    Test if printer exists

    Here is a link to a script that does exactly what you are looking for. http://cwashington.netreach.net/depo/view.asp?Index=1014&ScriptType=vbscript Hope it helps.
  12. fosterr2000

    Write Username/Computername to Log File

    filetxt.WriteLine("Username: " & WshNetwork.UserName + Chr(13) + "Computer Name: " & WshNetwork.ComputerName) & " Datetime: " & now()
  13. fosterr2000

    Network Driver/Duplex

    Thanks, I'll give it a try.
  14. fosterr2000

    Network Driver/Duplex

    I would like to see you script for w2k and w2k3. If you don't mind will you post it. Thanks
  15. fosterr2000

    Tryin to run .vbs through win2k task scheduler

    When setting up the task schedular info in the run as box be sure to enter a username with appropriate rights. Also be sure to include the domain name for a domain account (ie.. "your_domain\johndoe") or if it is a local account that this should run under then (ie.. "computer_name\johndoe")

Part and Inventory Search

Back
Top