+ Post New Thread
Results 1 to 3 of 3
Network and Classroom Management Thread, Beyondexec Network Defrag Batch Files in Technical; I am using the Beyondexec ( BeyondExec - Spawn Processes or Shutdown Remote Windows NT/2000/XP WorkStations ) program, Batch Files ...
  1. #1

    Join Date
    Feb 2009
    Location
    Essex
    Posts
    225
    Thank Post
    22
    Thanked 16 Times in 12 Posts
    Rep Power
    14

    Beyondexec Network Defrag Batch Files

    I am using the Beyondexec (BeyondExec - Spawn Processes or Shutdown Remote Windows NT/2000/XP WorkStations) program, Batch Files and Windows Scheduling on a server to Defrag Machines on a network and to syncronise time on the workstations with the server.

    I have created two batch files to do this which contain the commands:

    D:\upload\beyondexecv2.exe \\ICT-01 defrag c: -f
    D:\upload\beyondexecv2.exe \\ICT-02 defrag c: -f
    D:\upload\beyondexecv2.exe \\ICT-03 defrag c: -f
    D:\upload\beyondexecv2.exe \\ICT-04 defrag c: -f
    D:\upload\beyondexecv2.exe \\ICT-05 defrag c: -f

    etc... and

    D:\upload\beyondexecv2.exe \\ICT-01 -s net time \\server01 /set /yes
    D:\upload\beyondexecv2.exe \\ICT-02 -s net time \\server01 /set /yes
    D:\upload\beyondexecv2.exe \\ICT-03 -s net time \\server01 /set /yes
    D:\upload\beyondexecv2.exe \\ICT-04 -s net time \\server01 /set /yes
    D:\upload\beyondexecv2.exe \\ICT-05 -s net time \\server01 /set /yes

    There are two problems with this.
    1. It only defrags one machine at a time, before starting the defrag on the next machine.
    2. If the name of a machine is changed on the network, or another machine is added, that Batch files need to be changed.

    I was wondering if there is some way of using beyondexec with a variable, so I can have a file with all the station names inside a seperate file such as "stations.txt", so I just need to update the one file with all the station names. I was also wondering if there is a way to make the program defrag all machines at the same time, rather than just one at a time.

    If anyone could help I would be very grateful.

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,006
    Thank Post
    124
    Thanked 286 Times in 263 Posts
    Rep Power
    109
    psexec will accept a file of computer names to run commands against.

  3. #3
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,047
    Thank Post
    22
    Thanked 178 Times in 124 Posts
    Rep Power
    53
    Form website:

    By default, Beyondexec will wait for a process to finish before returning control on the initiating computer. To prevent beyondexec from waiting for the process to finish, the -w switch can be used.



SHARE:
+ Post New Thread

Similar Threads

  1. Rename a batch of files all at once.
    By Kyle in forum How do you do....it?
    Replies: 10
    Last Post: 19th November 2009, 07:31 AM
  2. Batch conversion of .cdr files to .png
    By _techie_ in forum How do you do....it?
    Replies: 1
    Last Post: 30th January 2009, 11:07 AM
  3. Batch files for ssh/linux...
    By boomam in forum *nix
    Replies: 4
    Last Post: 13th November 2008, 12:25 PM
  4. Running batch files in vista
    By Kained in forum Windows Vista
    Replies: 6
    Last Post: 4th September 2007, 03:25 PM
  5. numbers and batch files
    By russdev in forum Windows
    Replies: 4
    Last Post: 19th November 2005, 10:51 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •