Question

I'm using a virtualized web server and I don't remember whether it's running Windows Server 2000 or 2003. How can I tell which?

Ask the ISP, course, which I did. The question, then, is somewhat academic. Is there any way to tell this from .NET?

I access the machine through Plesk, which is designed to shield you from this kind of arcana.

Why do I want to know this? Because I'm getting ready to install a product that is supported on 2003 but not 2000. (I know this doesn't mean it won't run.)

Was it helpful?

Solution

You can retrieve this from System.Environment.OSVersion.

OTHER TIPS

When retrieving version information from System.Environment.OSVersion remember that checking file versions is surprisingly hard.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top