Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:18:04+00:00 2026-05-31T05:18:04+00:00

Consider domain of all windows based computers. from these computers i want to detect

  • 0

Consider domain of all windows based computers. from these computers i want to detect only windows server 2003 computers.

I have all machine names of all machines in domain. then how to determine OS version from machine name. I have used Environment.OSVersion to get os version of local computer. How can i obtain OS version of remote computer if i know remote computer name ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:18:05+00:00Added an answer on May 31, 2026 at 5:18 am

    You can use WMI (Windows Management Instrumentation) to access the remote computer’s
    Win32_OperatingSystem class instance.

    using (var mc = new ManagementClass(@"\\" + computerName + @"\root\cimv2:Win32_OperatingSystem"))
    {
        foreach (var obj in mc.GetInstances())
        {
           if (((bool)obj.Properties["Primary"].Value))
           {
              int productType = (int)obj.Properties["ProductType"].Value;
              string version = obj.Properties["Version"].Value.ToString();
              bool isServer = (productType == 2 || productType == 3); // "Domain Controller" or "Server
    
              if (version == "5.2.3790" && isServer)
              {
                 // "Caption" should contain something like "Microsoft(R) Windows(R) Server 2003..."
                 // Please resist parsing that, however.                  
                 Console.WriteLine(obj.Properties["Caption"].Value);
              }
           }
        }
     }
    

    For details on the properties and what values are available, see the MSDN pages for the Win32_OperatingSystem class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the case of blogspot.com the domain is the one blogspot.com only but suppose
Consider the following setup: A windows PC with a LAN interface and a WiFi
Consider this problem: I have a program which should fetch (let's say) 100 records
Consider these two function definitions: void foo() { } void foo(void) { } Is
Consider these classes. class Base { ... }; class Derived : public Base {
I want to know all the possible uses of cookies. Are they good or
Now I have my website built on PHP & Mysql. Consider this like a
Consider an IIS6 Application under a web site: Windows authentication is enabled. anonymous is
I have an application that needs to join tables from multiple databases into a
Consider the following domain classes class Business{ static hasMany = [contacts:ContactPerson] } class ContactPerson{

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.