Jump to content

How to Detect OS of remote machine


Recommended Posts

I think this will be easy if someone knows the location that the @OSVersion pulls it's info from.

I am running a utility remotely on some servers but the return code is different on 2000 than 2003 so I need to modify the responces depending upon the server OS.

I figured I could just do a remote regread and look for wherever the @OSVersion info is pulled from.

Or does someone have any other way to do this?

Thanks,

Mike

Link to comment
Share on other sites

if you can do the remote registry read successfully, check the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

it holds several string values that may help:

ProductName

CurrentVersion

CurrentBuildNumber

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...