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 gkittelson 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. TheALL

    error: invalid index

    error found, simply declare i of Printers.Item(i) [code] ........ sub GroupPrinterpadova1 () dim i [code]
  2. TheALL

    error: invalid index

    printer.counts in the real it starts from -1 and add two line for each printer, but -1 is the port and 0 is the name of the first printer Then i must start from 0 (the name) and progress by two (step 2) what do you suggest? maybe i can change the script but i'm curious to understand this error
  3. TheALL

    error: invalid index

    nope, the error still remain for windows 7 i think there is a patch or software that scan the correct scripting form. Infact the script is execute without error until "end sub". i Think less some correct exit form from sub or from cycle for-next.
  4. TheALL

    error: invalid index

    hi, i build a vb script to install a printer if not exist, but on some windows 7 (not all windows 7 client) i have this error: Error: Invalid Index Code: 8002000B Origin: SWbemObjectEx The portion ocde with error is this: ........ sub GroupPrinterpadova1 () Set Printers =...
  5. TheALL

    how to Save only some events in event log

    no error but seems not backup only file i want but always all. maybe changing the command of saving? errBackupLog = objLogFile.BackupEventLog("....")
  6. TheALL

    how to Save only some events in event log

    not work already try it one use Win32_NTEventLogFile and one use Win32_NTLogEvent i see those have different function
  7. TheALL

    how to Save only some events in event log

    i need to save certainly events fron event log in a determinate data First i use simple microsoft example to test backup ----------------------------------------------- strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate,(Backup)}!\\" & _...
  8. TheALL

    Why won't it work?

    \\server01\programs\inoculate\image\setup.exe /N /S is wrong or \\server01\c$\programs\inoculate\image\setup.exe /N /S or \\server01\D$\programs\inoculate\image\setup.exe /N /S Set oShell = WScript.CreateObject ("WSCript.shell") oShell.run "cmd /c...
  9. TheALL

    Stop service

    i find the trouble Service name and display name. my SO is in italian and i try to stop the service name and not the display name,so are different and the service can't stop because havn't that name :) i rechange script ########################################################### Set...
  10. TheALL

    Stop service

    no return code it don't write anything, in this case messenger work but for other service don't work write in file log
  11. TheALL

    Stop service

    thx for reply but isn't my problem. Is Space problem in service name i take a look in forum and find this thread http://www.tek-tips.com/viewthread.cfm?qid=827811 but i surely wrong something,becouse it isn't still working
  12. TheALL

    Stop service

    hi i do a simple vbscript to stop a service and have a simple log out. It work but not properly. Infact if service exist and it can be stopped ,in log file i read "Service Messenger Stopped",and all work well but if not exist or it not stopped... the script finish and i read nothing in log file...
  13. TheALL

    A few questions for the VBScript gurus...

    a)you right, i change to 10 or 11 but at the end is better,right read. b)it work perfectly :) (obviously is only a part of vbscript and printer group :) ) c)thanks for idea, now i work with select.
  14. TheALL

    A few questions for the VBScript gurus...

    MakeItSo,for point 2) exactly how i can modify my script,in stead of "goto"? i write an example. ----------------------------------------------------- test1 = "10.16.244." test2 = "10.16.245." test3 = "10.16.246." test4 = "10.16.247." Set WshNetwork = WScript.CreateObject("WScript.Network") set...

Part and Inventory Search

Back
Top