Gå till innehåll
Windows-felFel
CommandNotFoundException

CommandNotFoundException — Kommando hittades inte

Det angivna PowerShell-kommandot eller cmdleten hittades inte.

windows

Vad som orsakar detta fel

Cmdleten är inte installerad, modulen är inte inläst, eller kommandonamnet är felstavat.

Hur man åtgärdar det

Kontrollera kommandonamnet för stavfel. Importera modulen med Import-Module. Installera nödvändig modul med Install-Module.

Exempel

# Check available commands
Get-Command *search-term*
# Check module
Get-Module -ListAvailable
Officiell dokumentation

Relaterade felkoder