How to check version of powershell
By FoxLearn 7/30/2024 3:27:35 AM 138
To check the version of PowerShell you're using, you can follow these steps.
1. Using PowerShell Command
Open your PowerShell, then Type the following command and press Enter.
$PSVersionTable.PSVersion
This command will display the version number of PowerShell installed on your system.
2. Using Command Line (cmd)
Open your CMD, then Type the following command and press Enter.
powershell -Command "$PSVersionTable.PSVersion"
This will launch PowerShell from within Command Prompt and display the version information.
3. Using the PowerShell Executable Path
Open your PowerShell, then Type the following command and press Enter.
(Get-Command powershell).FileVersionInfo | Select-Object ProductVersion
This command retrieves the file version information for the PowerShell executable and displays the product version.
The output will show the version number in a format like Major.Minor.Build.Revision
- Major: Major version of PowerShell.
- Minor: Minor version, which may include updates or enhancements.
- Build: The build number, often indicating a specific build or release.
- Revision: The revision number, which may be used for very specific updates or patches.
- How to display GUI Message Boxes in PowerShell
- How to sign a powershell script
- How to run powershell script using task scheduler
- How to run powershell script from cmd
- How to run powershell commands in C#
- How to execute PowerShell script in C#
- How to delete a Windows service in PowerShell
- How to download file from url in PowerShell
Categories
Popular Posts
11 Things You Didn't Know About Cloudflare
12/19/2024