Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Invoke-PostUpdateActions The term is not recognized as cmdlet function script file or operable program #768

Open
myrandor opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@myrandor
Copy link

The problem

When running Winget-Upgrade.ps1 as system, I get an error calling Invoke-PostUpdateActions. From what I saw, it seems that this function is not used anymore, but it is called on the line 110 of Winget-Upgrade.ps1. It doesn't seems to break anything, but it's annoying to this error.

What version of WAU has the issue?

2.1.0

What version of Windows are you using (ex. Windows 11 22H2)?

Windows 10 22H2 - French canadian

What version of winget are you using?

1.9.25200

Log information

Winget info
-----------
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.5131
System Architecture: X64

Winget Directories
------------------------------------------------------------------------------------------------------
Logs                               %TEMP%\WinGet\defaultState
User Settings                      %LOCALAPPDATA%\Microsoft\WinGet\Settings\defaultState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                C:\Users\Default\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale


Group Policy                                                                  State
-------------------------------------------------------------------------------------
Enable Windows Package Manager                                                Enabled
Enable Windows App Installer Default Source                                   Enabled
Enable Windows App Installer Microsoft Store Source                           Enabled
Enable Additional Windows App Installer Sources                               Enabled
Enable Windows App Installer Microsoft Store Source Pinned Certificate Bypass Enabled
Enable Windows Package Manager command line interfaces                        Enabled
Set Windows Package Manager Source Auto Update Interval In Minutes            720

Additional source Type           Argument
------------------------------------------------------------------
IMPSJ             Microsoft.Rest https://winget.intranet.impsj.com

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Enabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Winget-Autoupdate console (sorry for the french messages)
---------------------------------------------------------
Invoke-PostUpdateActions : Le terme «Invoke-PostUpdateActions» n'est pas reconnu comme nom d'applet de commande, 
fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, 
vérifiez que le chemin d'accès est correct et réessayez.
Au caractère C:\Program Files\Winget-AutoUpdate\Winget-Upgrade.ps1:110 : 9
+         Invoke-PostUpdateActions
+         ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Invoke-PostUpdateActions:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Additional information

No response

@myrandor myrandor added the bug Something isn't working label Nov 19, 2024
FaserF added a commit to FaserF/Winget-AutoUpdate that referenced this issue Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant