Take SystemState Backup Remotely

m_p_biswal
m_p_biswal used Ask the Experts™
on
Hi Experts,
Everyday I need to take Windows systemstate backup for multiple different servers in different domain, manually loging to each server. Which takes a lot of time. Without using any thirdparty software, is there any way (or any script) to take the systemstate backup Remotely from one server.

Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Krzysztof PytkoSenior Active Directory Engineer
Top Expert 2012

Commented:
Nope. But you can simply create that script using PsExec from SysInternals. Very good and simple tool.
http://technet.microsoft.com/en-us/library/cc974368%28WS.10%29.aspx

Try it :)

Regards,
Krzysztof

Author

Commented:
Not able to figure it out. Any more clue
Krzysztof PytkoSenior Active Directory Engineer
Top Expert 2012
Commented:
psexec is a tool which runs commands on remote systems. you can specify to run ntbackup with system state parameter

try

psexec \\servername -u admin_user -p password ntbackup "backup systemstate /j "Systemstate Backup Job" /f "C:\ssbackup.bkf"

if it works fro you, you can set up text file with servers

i.e

srv1
srv2
srv3
srv4

save as servers.txt

and place it in the same place as psexec
run

psexec @servers.txt -u admin_user -p password ntbackup "backup systemstate /j "Systemstate Backup Job" /f "C:\ssbackup.bkf"

run from one place, and it will do system state backups on those servers :)

Hope it helps

Krzysztof
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Author

Commented:
It's giving error "ntbackup exited on ServerName with error code 87"

Commented:
m_p_biswal

I would create a scheduled task on each server to backup the system state. You can either have it save the file to a network share or have a script copy them all to a central share. Then you can log into that one server and copy them or have a script copy them to whereever you want.
Senior Active Directory Engineer
Top Expert 2012
Commented:
looks like a syntax error

try to save this syntax to batch file

ntbackup backup systemstate /j "Systemstate Backup Job" /f "C:\ssbackup.bkf"

copy to psexec folder and run

psexec @servers.txt -u admin_user -p password -c batch_filename

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial