New
#1
Foolproof Image Backup script for naive Home users
Can anyone offer a script running 'WBADMIN -allcritical –systemstate',
wrapped with a method of checking for success,
and in particular coping with a mid-process user system shutdown?
Let me explain this...
Background
In return for a donation to a local charity, I offer support to a number of home users.
None of them is tech-savvy. Many are aged around 70 years. (like me!)
The OS is Win 10, but the hardware is often old and slow, with a single disk + a local external backup disk (for File History and monthly System Image Backups) some USB3, some USB2.
The users never check the success of their backup, and on occasions have just shut down the PC before going to bed - I'm only guessing, but certainly Win 7 data backups with system Image have often failed when I check.
I have had to recover entire systems for various good people, sometimes by a clean re-install with all the hassle of keys for licensed software etc when no image is available. It takes hours of my time. The result is never identical.
By contrast, last week one user had a system crash, but had a backup and was fully restored on a new disk drive by the end of the next day.
My preferred scripting language would be PowerShell, even though I have never written any PS – my skills were 99% VBA and 1% VBScript. I'm willing to learn enough PS to get this working.
I notice many votes for Macrium here, but I can only rely on MS provided software, (WBADMIN and File History), so I’d prefer to rule Macrium as Out of Scope.
A possible design, with two simple scripts
- A Logon script to check the backup state:
If the last backup was not successful, warn user (very loudly) what to do.
ElseIf previous backup > 30 days old, advise user to do a backup “soon”.
Else Exit silentlyI plan a new custom key in HKCU with values of Backup Timestamp and a SUCCESS or FAIL value.
- A WBADMIN wrapper script:
check backup drive is connected, warn and quit if not.The logon script should remind users daily until they have run the Backup script successfully.
set HKCU key to Backup time stamp and a ‘FAIL’ value;
start WBADMIN and on completion update HKCU key to SUCCESS.
End
With such a tool, I should be able to expect a reliable Image for use on Disaster day.
Questions about the WindowsImageBackup folderCan WindowsImageBackup hold more then one image of the same computer or not?I can’t figure this out from all I have read. (Please, no ref to Macrium in your replies, as it is out of scope).
Does creating a new image destroy any existing images?
Is there a guaranteed way of storing two or more images (assuming space)?
I hope some guru here can help in what ought to be a trivial task.I hope I have not posted in the wrong group.
Spilly