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 203203 # Set the variable for the information store
204204 $InformationStore = ' File'
205205 }
206+
206207 }
207208
208209 # Unregister any configurations
376377 Set-PSFConfig - Module PSDatabaseClone - Name informationstore.credential - Value $Credential
377378 }
378379
379- # Set if Hyper-V is enabled
380- Set-PSFConfig - Module PSDatabaseClone - Name hyperv.enabled - Value (Test-PSDCHyperVEnabled ) - Validation bool
381-
382380 # Set the information store mode
383381 Set-PSFConfig - Module PSDatabaseClone - Name informationstore.mode - Value $InformationStore
384382
390388 Get-PSFConfig - FullName psdatabaseclone.database.server | Register-PSFConfig - Scope SystemDefault
391389 Get-PSFConfig - FullName psdatabaseclone.database.name | Register-PSFConfig - Scope SystemDefault
392390
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
396394
397395 # Check if all the settings have been made
398396 if ($InformationStore -eq ' SQL' ) {
423421
424422 # Set the overall status in the configurations
425423 Get-PSFConfig - FullName psdatabaseclone.setup.status | Register-PSFConfig - Scope SystemDefault
424+
425+
426426 }
427427
428428 end {
You can’t perform that action at this time.
0 commit comments