Seite 1 von 1

Winget verschwunden/cmdlet nicht bekannt

Verfasst: 24.10.2023, 06:27
von schnacken

Code: Alles auswählen

winget : Die Benennung "winget" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1
+ winget
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (winget:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Windows 11 22H2 (22621.2428)
AppInstaller im MSStore auf aktuellen stand.

Wie kommt so etwas ur plötzlich?! Habe Winget nach der Win11 Installation fleißig genutzt und alles nötige mittels eigenem Script installiert - das nicht nur einmal. (Installation von Win11 ist ca. 3 Wochen her)
Jetzt ist da cmdlet nicht mehr bekannt und kann nix updaten oder installieren.
Hat von euch jemand einen Rat, wie ich winget wieder benutzen kann?

Re: Winget verschwunden/cmdlet nicht bekannt

Verfasst: 24.10.2023, 09:52
von Holgi
vlt. mal Winget neu installieren?
Winget.cmd

Code: Alles auswählen

powershell -noprofile "Start-BitsTransfer -DisplayName Microsoft.VCLibs.x64 "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"
powershell -noprofile "Start-BitsTransfer -DisplayName Microsoft.DesktopAppInstaller "https://github.com/microsoft/winget-cli/releases/download/v1.6.2721/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
powershell -noprofile "Start-BitsTransfer -DisplayName Microsoft.UI.Xaml "https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.5/Microsoft.UI.Xaml.2.8.x64.appx"

powershell -noprofile Add-AppxPackage ".\Microsoft.VCLibs.x64.14.00.Desktop.appx"
powershell -noprofile Add-AppxPackage ".\Microsoft.UI.Xaml.2.8.x64.appx"
powershell -noprofile Add-AppxPackage ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"

powershell Add-AppPackage -Register "'C:\Program Files\WindowsApps\*Microsoft.DesktopAppInstaller*neutral_split.language-de_8wekyb3d8bbwe\AppxManifest.xml'" -DisableDevelopmentMode