Skip to content

Commit 9783a87

Browse files
committed
Changed message to include the install command for Hyper-V PowerShell module
1 parent 4142e92 commit 9783a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/scripts/preimport.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if ($osDetails.Caption -notin $supportedVersions ) {
3232
elseif ($osDetails.Caption -like '*Windows Server*') {
3333
$feature = Get-WindowsFeature -Name 'Hyper-V'
3434
if (-not $feature.Installed) {
35-
Write-PSFMessage -Message "Hyper-V is not enabled, the module can only be used remotely.`nTo use the module locally execute the following command: `"Install-WindowsFeature -Name Hyper-V`"" -Level Warning -FunctionName 'Test-PSDCConfiguration'
35+
Write-PSFMessage -Message "Hyper-V is not enabled, the module can only be used remotely.`nTo use the module execute the following command:`n `"Install-WindowsFeature -Name Hyper-V`"`n`"Install-WindowsFeature -Name Hyper-V-PowerShell`"" -Level Warning -FunctionName 'Pre Import'
3636
}
3737

3838
Stop-PSFFunction -Message "Module can only work on Windows Server 2012 R2 and up, Enterprise or Education" -Target $OSDetails -FunctionName 'Pre Import'

0 commit comments

Comments
 (0)