Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

detect remote machine Operating system

Posted on 2003-10-27
6
Medium Priority
?
290 Views
Last Modified: 2010-04-17
hi experts
i am presently working with VC, i want to known the operating system present on the remote system programatically
is there any way to doit
i am able to get the domains and system ips programatically, and now i need to known the operating system prsent on them.
thanks in advance
regards
Karunakar
0
Comment
Question by:karunakarrreddy
  • 2
3 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 9631577
A fancy way would be to look at the remote registry, starting with a call to RegConnectRegistry(), then look at its HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions.

An easy way would be to run a bat file that plops %OS% into a file which you then pull back.
0
 
LVL 9

Accepted Solution

by:
bhagyesht earned 120 total points
ID: 9640572
fire a ping command and redirect the output to a file and read it and based on the ttl you can get the information
128=microsoft
64=linux
etc
0
 
LVL 22

Expert Comment

by:cookre
ID: 9889066
Did you get what you needed?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Screencast - Getting to Know the Pipeline

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question