Skip to content

Commit 394b121

Browse files
committed
Changed message
1 parent 2f121c9 commit 394b121

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/functions/Test-PSDCConfiguration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@
102102
if ($osDetails.Caption -like '*Windows 10*') {
103103
$feature = Get-WindowsOptionalFeature -FeatureName 'Microsoft-Hyper-V-All' -Online
104104
if ($feature.State -ne "Enabled") {
105-
Write-PSFMessage -Message 'Hyper-V is not enabled, the module can only be used remotely.`n To use the module locally execute the following command: "Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All"' -Level Warning -FunctionName 'Pre Import'
105+
Write-PSFMessage -Message "Hyper-V is not enabled, the module can only be used remotely.`nTo use the module locally execute the following command: `"Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All`"" -Level Warning -FunctionName 'Test-PSDCConfiguration'
106106
}
107107
}
108108
elseif ($osDetails.Caption -like '*Windows Server*') {
109109
$feature = Get-WindowsFeature -Name 'Hyper-V'
110110
if (-not $feature.Installed) {
111-
Write-PSFMessage -Message 'Hyper-V is not enabled, the module can only be used remotely.`n To use the module locally execute the following command: "Install-WindowsFeature -Name Hyper-V"' -Level Warning -FunctionName 'Pre Import'
111+
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'
112112
}
113113
}
114114

0 commit comments

Comments
 (0)