Knowing your operating system’s edition can prove quite useful for someone who’s just an IT enthuziast user or an IT system administrator.
- Install PowerShell.
- Paste the code below into a new file.
- Save the script as your-file.ps1 (don’t forget to put the .ps1 extensidon; otherwise, the script will not execute).
- Run the script by running PowerShell and executing the following command: