Skip to content

Commit 4501244

Browse files
committed
Removed hyper-v check. Added config for diskpart script file
1 parent 32b38ec commit 4501244

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

functions/support/Set-PSDCConfiguration.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
# Set the variable for the information store
204204
$InformationStore = 'File'
205205
}
206+
206207
}
207208

208209
# Unregister any configurations
@@ -376,9 +377,6 @@
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

@@ -390,9 +388,9 @@
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') {
@@ -423,6 +421,8 @@
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 {

0 commit comments

Comments
 (0)