diff --git a/pkg/crc/preflight/preflight_daemon_task_check_windows.go b/pkg/crc/preflight/preflight_daemon_task_check_windows.go index 5424bc55c9..12b2853c43 100644 --- a/pkg/crc/preflight/preflight_daemon_task_check_windows.go +++ b/pkg/crc/preflight/preflight_daemon_task_check_windows.go @@ -211,8 +211,10 @@ func getDaemonPoshScriptContent() []byte { if err != nil { return []byte{} } + drive := filepath.VolumeName(binPath) + binPathWithSmallCaseDriveLetter := strings.Replace(binPath, drive, strings.ToLower(drive), 1) daemonCmdArgs := `daemon --log-level debug` - return []byte(fmt.Sprintf(daemonPoshScriptTemplate, binPath, daemonCmdArgs)) + return []byte(fmt.Sprintf(daemonPoshScriptTemplate, binPathWithSmallCaseDriveLetter, daemonCmdArgs)) } func checkDaemonPoshScript() error {