Dec 28 2023 09:55 AM
Hi,
if I start Windows PowerShell from app. Terminal, the window appears telling me to install the latest version, but I have already installed version 7.4.0
Furthermore, the Windows PowerShell warning appears randomly in the event log with Id: 300, is it possible to eliminate it?
Dec 28 2023 10:35 AM
Dec 28 2023 05:16 PM
You're right in that their screenshot is of Windows PowerShell and not PowerShell - you can tell from the tab title and welcome message where it says "Windows PowerShell".
Conversely, PowerShell simply says "PowerShell", and not "Windows PowerShell. PowerShell also dumps the version in the welcome message where Windows PowerShell does not.
Here's a side-by-side example showing the title bar differences in Windows Terminal:
You can't compare Windows PowerShell version numbers to PowerShell version numbers.
For Windows PowerShell, if you've been applying the monthly Windows operating system updates (speaking for Windows 10, at least, as I don't run Windows 11) then Windows PowerShell should already be up-to-date.
For PowerShell, if you're running 7.4.0 then you are on the latest stable branch and there is nothing left to do. Just make sure that within Windows Terminal, you are starting a new PowerShell session and not a Windows PowerShell session.
Cheers,
Lain
Dec 29 2023 02:59 AM - edited Dec 29 2023 03:06 AM
Windows PowerShell appears to be version 5.1, but I don't understand why the description of the event in the photo shows me version 1.0.
and is it not possible to eliminate that id 300 error described in the first post?
Thank you
Dec 29 2023 03:04 AM
Dec 29 2023 07:33 AM
Solution
With respect to the "v1.0" shown in the path to Windows PowerShell, it has always lived in that directory, has never changed from it, and likely never will.
Conversely, PowerShell (not Windows PowerShell) can be installed pretty much anywhere you like - if you're using the MSI-based installation. It just happens to default to %ProgramFiles%.
You can exert a limited amount of control over Windows PowerShell logging by using the variables listed in the following article:
You cannot specifically target a particular event ID though.
Cheers,
Lain
Dec 29 2023 07:33 AM
Solution
With respect to the "v1.0" shown in the path to Windows PowerShell, it has always lived in that directory, has never changed from it, and likely never will.
Conversely, PowerShell (not Windows PowerShell) can be installed pretty much anywhere you like - if you're using the MSI-based installation. It just happens to default to %ProgramFiles%.
You can exert a limited amount of control over Windows PowerShell logging by using the variables listed in the following article:
You cannot specifically target a particular event ID though.
Cheers,
Lain