Sign in to follow this  
Followers 0
bourny

How to detect server

3 posts in this topic

I am looking for some assistance to detect a server via my script.

I can read in reg values such as HKLM/software/windowsNT/currentversion/product name

The problem with this is windows 2000 server and windows 2000 client have the same product name and build number . Server 2003 is unique but anything prior to this I cannot ID. This includes NT4 server

Any help appreciated ....

Thanks

BournyM

Share this post


Link to post
Share on other sites



I am looking for some assistance to detect a server via my script.

I can read in reg values such as HKLM/software/windowsNT/currentversion/product name

The problem with this is windows 2000 server and windows 2000 client have the same product name and build number . Server 2003 is unique but anything prior to this I cannot ID. This includes NT4 server

Any help appreciated ....

Thanks

BournyM

@OSVersion will tell you what operating system you are using but I do not know how to tell if it is a server version.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Unfortunatly @OSVersion does not tell you if the machine is a server or a client - this looks as if it reads the Product type key in the registry

Any other ideas fellow scripters ??

Share this post


Link to post
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
Sign in to follow this  
Followers 0