Windows server 2008 above system state backup automation


@echo off
wbadmin start systemstatebackup -backuptarget:D: -quiet >>D:\Backups\WSB_Logs\Backup.log
wbadmin delete systemstatebackup -keepversions:1 -quiet >>D:\Backups\WSB_Logs\Backup-del.log
ipconfig /all >D:\IPDetails_Backups\Common\IPconfig_%computername%.txt”
regedit /e “D:\Re_Backups\Common\Reg_%computername%.reg”
sc queryex type= service state= all >”D:\Services_Backups\Common\Service_%computername%.txt”
exit

Note:

Save as SSB.cmd

Schedule task. Don’t forget to select run with high privileges

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: