Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a computer on my organization ( my Computer).

I want to detect by cmd commands ( only) if the remote computer contains windows operating system ( never mind the version )

someone told me to test the ping command - with the size of the packet. but it is configurable. - so this solution is NOt the best option for me.

I have to be sure....

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Short answer: you can't.

Long answer: describe the problem you're really trying to solve because "cmd commands" is awfully vague and limitative. Literally, it would be interpreted as "only commands built into the cmd.exe command-line interpretor" but your mention of the ping command already tells us that is not what you mean.

So: do you want to do it by batch ? Then you can download nmap and tell it to attempt an OS detection. You can also attempt to connect to the machine's SMB share and see if the administrative shares are there.

Also, if it's a single computer, why not just walk over there and check ?

share|improve this answer

Nmap does OS fingerprinting with some degree of certainty - meaning, if it returns it's windows, you can take it as a strong hint that it could be. If you need better than that, see Stephane's answer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.