File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 203
203
# Set the variable for the information store
204
204
$InformationStore = ' File'
205
205
}
206
+
206
207
}
207
208
208
209
# Unregister any configurations
376
377
Set-PSFConfig - Module PSDatabaseClone - Name informationstore.credential - Value $Credential
377
378
}
378
379
379
- # Set if Hyper-V is enabled
380
- Set-PSFConfig - Module PSDatabaseClone - Name hyperv.enabled - Value (Test-PSDCHyperVEnabled ) - Validation bool
381
-
382
380
# Set the information store mode
383
381
Set-PSFConfig - Module PSDatabaseClone - Name informationstore.mode - Value $InformationStore
384
382
390
388
Get-PSFConfig - FullName psdatabaseclone.database.server | Register-PSFConfig - Scope SystemDefault
391
389
Get-PSFConfig - FullName psdatabaseclone.database.name | Register-PSFConfig - Scope SystemDefault
392
390
393
- Get-PSFConfig - FullName psdatabaseclone.hyperv.enabled | Register-PSFConfig - Scope SystemDefault
394
-
395
- # Get-PSFConfig -FullName psdatabaseclone.database.credential | Register-PSFConfig -Scope SystemDefault
391
+ # Set the path to the diskpart script file
392
+ Set-PSFConfig - Module PSDatabaseClone - Name diskpart.scriptfile - Value " $ env: APPDATA \psdatabaseclone\diskpartcommand.txt " - Validation string
393
+ Get-PSFConfig - FullName psdatabaseclone.diskpart.scriptfile | Register-PSFConfig - Scope SystemDefault
396
394
397
395
# Check if all the settings have been made
398
396
if ($InformationStore -eq ' SQL' ) {
423
421
424
422
# Set the overall status in the configurations
425
423
Get-PSFConfig - FullName psdatabaseclone.setup.status | Register-PSFConfig - Scope SystemDefault
424
+
425
+
426
426
}
427
427
428
428
end {
You can’t perform that action at this time.
0 commit comments