Jump to content

How to detect XP Home vs. XP Pro, etc.


Recommended Posts

Hi,

I need a way to figure out whether the user's machine is running Windows XP Home, Windows XP Pro, or something else. I found the various @OS macros, but from what I can see, none of them will tell me if the user's machine is Home or Pro.

Is there a registry key somewhere that tells me this?

Thanks.

Link to comment
Share on other sites

Hi,

I need a way to figure out whether the user's machine is running Windows XP Home, Windows XP Pro, or something else. I found the various @OS macros, but from what I can see, none of them will tell me if the user's machine is Home or Pro.

Is there a registry key somewhere that tells me this?

Thanks.

Hi,

I don´t know whether that helps you, but I think the file c:\winnt\system32\GPEDIT.MSC only exits on WIN XP Pro. :lmao:

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

I need a way to figure out whether the user's machine is running Windows XP Home, Windows XP Pro, or something else. I found the various @OS macros, but from what I can see, none of them will tell me if the user's machine is Home or Pro.

Is there a registry key somewhere that tells me this?

Thanks.

I googled up an MSDN article with an answer... ;)

But it's an ugly, awkward, long-way-around, very microsoft-ish kind of answer... o:)

Maybe some scripter out there could turn that into an AutoIT UDF... hmm... hint, hint... :lmao:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I don´t know whether that helps you, but I think the file c:\winnt\system32\GPEDIT.MSC only exits on WIN XP Pro. ;)

That approach sounds like an excellent idea to me - Something that I would come up with on my own actually. Of course, I am new to this ... So be careful! :lmao:

Link to comment
Share on other sites

  • Moderators

Requires Beta, from a post that Valuater made yesterday I believe, I just pulled the info you were asking about:

$objWMIService = objget("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")

$colSettings = $objWMIService.ExecQuery("Select * from Win32_OperatingSystem")

For $objOperatingSystem in $colSettings
    $Type = StringMid($objOperatingSystem.Caption, 22)
    MsgBox(0, '', $Type)
Next

Edit:

Narrowed it down to the actual type...

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • 4 years later...

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