Jump to content

Recommended Posts

Posted

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

Posted

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.


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

Posted

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 ??

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
  • Recently Browsing   0 members

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