If you run a standard client task sequence template from within the OS, you will notice the Computer Backup wizard pane allows you to specify the location for the backup. If you have BackupDir and BackupShare values populated in the database or in customsettings.ini, then this path will be automatically filled out for you.
If you run a client replace task sequence template, this value won’t auto populate for you. What I noticed in DeployWiz_Initalization.vbs was that there was specific logic around ComputerBackupLocation when the DeploymentType was REPLACE as seen below.
I noticed there wasn’t any logic to set the DataPath using the BackupDir and BackupShare values. By adding the below logic, I was able to get the Wizard pane to behave as I would have expected it to and use the BackupDir and BackupShare values that I’ve provided in the database (or through customsettings.ini).
‘ CUSTOM – added logic for BackupShare and BackupDir when doing a REPLACE scenario
ElseIf UCase(property("ComputerBackupLocation")) = "NETWORK" then
If Property("BackupShare") <> ""AND Property("BackupDir") <> "" Then
DataPath.value = Property("BackupShare") & "\" & Property("BackupDir")
‘ CUSTOM – end added logic
####End Added Logic
This solution gave me the intended behavior I wanted. Now I’m sure the REPLACE logic is there for a reason, so instead of removing that logic, I simply added the behavior I wanted to it. I’m sure the MDT guys had a good reason for doing what they did.
Hope this helps.