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

Search results for query: *

  1. Hun9865

    Powershell Script Help

    Hello Powershell Masters, I have below script in VBscript, Would like to convert in PowerShell. Kindly help me in this… option Explicit const ForReading = 1, ForWriting = 2, ForAppending = 3 dim arrErrors(13) 'I wanted to check list of errors from my array condition dim objFSO...
  2. Hun9865

    HTA script help to browse a text file

    I have below hta script, to check the Services status on single system. My requirement is to run this on list of computers. i.e, The script should have a browse button to ask for a text file from local computer and accept to run on systems that are in the text file. <Html> <Head>...
  3. Hun9865

    Arrys in Powershell

    I used to do array in VBSCRIPT like below… I am not sure how I should do it in PowerShell… Can any help me out…? dim arrErrors(12) arrErrors(0) = "APP0" arrErrors(1) = " APP1" arrErrors(2) = " APP2" arrErrors(3) = " APP3” arrErrors(4) = "APP4" arrErrors(5) = "APP5" arrErrors(6) = "APP6"...
  4. Hun9865

    Array in Powershell -help pls

    I used to do array in VBSCRIPT like below… I am not sure how I should do it in PowerShell… Can any help me out…? dim arrErrors(12) arrErrors(0) = "APP0" arrErrors(1) = " APP1" arrErrors(2) = " APP2" arrErrors(3) = " APP3” arrErrors(4) = "APP4" arrErrors(5) = "APP5" arrErrors(6) = "APP6"...
  5. Hun9865

    How to get the count from WMI class listed values...

    I have below vbscript.... when executed it will give all the applications that are in this class "SELECT * FROM Application".. What I wanted is a count of these application... I am looking for this script to have in vbscript or powrershell... Count of Package Name in totall.. say if the app-v...
  6. Hun9865

    How to get the count from WMI class listed values...

    I have below vbscript.... when executed it will give all the applications that are in this class "SELECT * FROM Application".. What I wanted is a count of these application... I am looking for this script to have in vbscript or powrershell... Count of Package Name in totall.. say if the app-v...
  7. Hun9865

    Powershell Script to get Windows Events info to Excel format

    I have done small changes to get the last five days events only but the script not showing any results.... Can any one help me here... pls... $servers = get-content “C:\list.txt” $OututPath="C\OUTPUT.csv" $fromtime = (get-date).Adddays(-5) get-eventlog -log Application -comp $servers | where...
  8. Hun9865

    Powershell Script to get Windows Events info to Excel format

    I have below powershell script for windows events to query, trying to write this script to get the Compueter name, Event ID, Source and description info to excel. Looking for help to finish this script. This script to run on list of computers also. $servers = get-content “c:\list.txt” foreach...
  9. Hun9865

    Script to export to excel

    Can i also do some filtering before saving to excel to a specific column?
  10. Hun9865

    Script to export to excel

    I Have below script:-- looking for help to convert the output to excel format $servers = get-content “c:\list.txt” foreach ($server in $servers) { $server $command = “quser /server:” + $server invoke-expression $command } when executed getting in below format the output. server1 USERNAME...
  11. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    Thanks to all... again... Just wanted to drop a line to say "THANKS". This is such a great site. I'm so glad that it is around. Everyone has been extremely helpful. I don't know how often, if at all, that you archive the threads, but I always seem to find what I need in previous threads without...
  12. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    Just tested the script.... Found working when i added below... strToday = right("0" & datePart("m", date()), 2) & "/" & right("0" & datePart("d", date()), 2) & "/" & datePart("yyyy", date())
  13. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    I have just tested on my first log against and found still not working.... Kindly help me.... the first posted log file (I have changed the Date to current and tested). [10/31/2012 19:53:41:889 SWAP INF] {hap=CB2:app=Internet Explorer_b1 6.0.3790.3959:tid=22C0:usr=B9D327} Elapsed time for...
  14. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    I have collected the few error lines from different server and consolidated into coreapp.txt and running script for test the script, but not working.. Kindly help me in this..... Thanks..... Thanks in advance ...
  15. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    The log file always same as [Current date and time with some text some text some text Empty Line Empty Line Empty Line (some time three lines and some time two empty lines) My criteria to catch the errors (from the array) on current date text only.. Like above provided log..
  16. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    I have tried my best to update the script based on the forum feedback. I really stuck here… need you help… please… Problem:- The script is working as expected, however not catching all the errors from the “CoreAPP.txt” log file. Below is the log file (CoreAPP.txt) which I am trying to run this...
  17. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    OK.. When i change back to the original script.... I am getting the output for all Dates.... I wanted to have output for only current Date... I am sure I am missing the logic on below line... Kindly help me... ... Below is suspecting logic error Line from full script.... if (left(strLine...
  18. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    This time got different Error:.. pls help me.. from here... option Explicit const ForReading = 1, ForWriting = 2, ForAppending = 3 const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0 dim arrErrors(5) dim objFSO, objServerList, objErrorLog, strErrorLine, strError dim...
  19. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    Found the error as spell mistake... However still stuck with other errors... option Explicit const ForReading = 1, ForWriting = 2, ForAppending = 3 const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0 dim arrErrors(5) dim objFSO, objServerList, objErrorLog, strErrorLine dim...
  20. Hun9865

    Vbscript Logic Missing - Looking for Help to read remote text file which has current date in a log

    I am getting the error as Variable is undefined: 'objCorApp'

Part and Inventory Search

Back
Top