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 ...
18th March 2009, 08:53 PM #1
- Rep Power
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
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.
IDG Tech News
18th March 2009, 10:27 PM #2
psexec will accept a file of computer names to run commands against.
19th March 2009, 07:19 PM #3
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.
By Kyle in forum How do you do....it?
Last Post: 19th November 2009, 07:31 AM
By _techie_ in forum How do you do....it?
Last Post: 30th January 2009, 11:07 AM
Last Post: 13th November 2008, 12:25 PM
By Kained in forum Windows Vista
Last Post: 4th September 2007, 03:25 PM
By russdev in forum Windows
Last Post: 19th November 2005, 10:51 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)