💻 Software
How can I determine which version of Windows is running on a server using PowerShell?
Fresh7 days ago
Mar 15, 202614669 viewsConfidence Score0%
0%
Problem
I'm trying to write a PowerShell script that I can run on remote servers. In these scripts I want to carry out different functions depending on which version of Windows is running on the machines. I cant seem to find any useful information on the net about how to determine which version of Windows …
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I determine which version of Windows is running on a server using PowerShell?
Low Risk
This is the one I would go with: As todda.speot.is mentioned, that is the same link I found, but there are a lot of anwsers within it, and I tested them. That one I gave appears to give you what you want, although you will have to parse it (I think …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix