Announcement

Collapse
No announcement yet.

Running Script on the Lan

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running Script on the Lan

    hey
    i wrote a script for reading EDID properties and now i need to run it in my lan (over 1K Win2K - have computer names/ips)


    how can i do it without GPO/CM07/SMS03 only with Batch/VBS

    Thanks!
    Andrew

  • #2
    Re: Running Script on the Lan

    Originally posted by andrewv View Post
    i wrote a script for reading EDID properties and now i need to run it in my lan (over 1K Win2K - have computer names/ips)
    You have several options, depending on the script. Must it be run locally? Can you exec it against UNC name?

    For local usage, logon script and Sysinternals PSExec might help, UNC is a bit easier. Anyway, a simple for loop would do. Just create a list of computer names and loop through them and execute the commands. Like:

    Code:
    @echo off
    for /l %%i in (1,1,10) do call :edid %%i
    
    :edid
    :: proper script goes here
      set param=%~1
      if not defined param goto:eof
      set target=computer%param%
      
      echo %target%
      goto:eof
    More a detailed an answer would require more info about your program.

    -vP

    Comment


    • #3
      Re: Running Script on the Lan

      Originally posted by vonPryz View Post
      You have several options, depending on the script. Must it be run locally? Can you exec it against UNC name?

      For local usage, logon script and Sysinternals PSExec might help, UNC is a bit easier. Anyway, a simple for loop would do. Just create a list of computer names and loop through them and execute the commands. Like:

      Code:
      @echo off
      for /l %%i in (1,1,10) do call :edid %%i
       
      :edid
      :: proper script goes here
        set param=%~1
        if not defined param goto:eof
        set target=computer%param%
       
        echo %target%
        goto:eof
      More a detailed an answer would require more info about your program.

      -vP
      if i want to use PSEXEC i will need my VBS file in all computers system32 folder, Logon is good, but it depends on users logon. so the report will not be completed.

      my script (vbs) read EDID parameters in Regestry and prints the S/N and model in txt file.

      Comment


      • #4
        Re: Running Script on the Lan

        i did it!
        use psexec.

        i opend share folder with read permission for everyone and put there a vbs file.

        and my bat file looks like this

        psexec @list.txt -s -d cscript.exe \\server\share$\*.vbs
        this one realy executed the vbs on remote computers

        Thanks for helping !

        Comment

        Working...
        X