Avatar of Niranjan Venkatesh
Niranjan Venkatesh
Flag for Botswana asked on

Remote Start of VBS between two servers.

Hi Folks,

I am going to explain my issue and hope i can get an easy answer!

I have a two domain's with Two Dc on each ,  one is running Windows Server 2008 R2 and the other Windows Server 2008, both 64 bit . I have written a VBS to create backups of the data . The script creates a backup of the data onto the secondary DC, then creates a zip file named with the date and time on an external backup Hard drive. I also use the same script on the secondary Dc to create a zip file for daily offsite storage.

The scripts are doing the job perfectly , the logic and all other factors are great. Currently the primary Dc gives message to let the user know the files have been copied to the Secondary dc, and the user can then double click the script on the Secondary dc to begin zipping the files onto the offsite HDD.
My problem is that i actually want the script running on the primary DC to start the backup script on the secondary Dc automatically with out asking the user to do so. The zipping process has a command window to show its progress and on completion the servers are shutdown each day.

Any ideas and suggestion on this problem would be appreciated.

Regards,
Niranjan
VB ScriptScripting Languages

Avatar of undefined
Last Comment
Niranjan Venkatesh

8/22/2022 - Mon
SOLUTION
Steve Knight

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Niranjan Venkatesh

ASKER
Hi

The LAN connections are very decent (1GBPS) so that is not an issue. I think i did not make it very clear(sorry it was late, and I was tired and stressed as a server I am building was giving me grief!) In total there is three backups being made, one on the Secondary DC, one on the External HDD attached to the Primary DC and another External HDD  on the Secondary DC   which is   my off  site backup.
 
I did try Psexec,  but on the second dc the file pops up a window and nothing seem to happen as i think it is related  to the window that Winzip Cli opens.

I will try the schtasks idea over this weekend and revert by Monday.

Regards,
Niranjan
SOLUTION
Steve Knight

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Niranjan Venkatesh

ASKER
My main issue was to running the VBS on DC2 as soon as Dc1 finished copying the files to it. So this solution works well, as i dont have to worry about scheduling , setting times etc.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy