Create ERD images from many NT4 systems at once (remote process management)
[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
Set LocalPath=c:\remotesysback\%servername2%\%date%
[Settings_End]
[Machines_Begin]
\\EDU12 NT PDC
\\EDU16 NT
[Machines_End]
[Batch_Begin]
// Create new registry backup files on the remote machine
DOSR %servername%,0,rdisk /s-
// Wait 5 s for rdisk.exe to start and maximum 2 minutes (=120 s) for it to finish
Wait.Process %servername% , rdisk.exe ,5 ,120
// Create a local direcotry (ignore errors if the dir exists)
$i DOS md %LocalPath%
// Copy the files to a local directory, /v = verify
DOS copy %servername%\admin$\repair\*.* %LocalPath% /v
// Stop the remote admin service
Service.Admin.Stop
[Batch_End]
Required
NT4 SP5 or higher
The above script does not run on Windows 2000 or higher