Wyleyrabbit Posted February 5, 2006 Posted February 5, 2006 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.
Xenobiologist Posted February 5, 2006 Posted February 5, 2006 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. 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
PsaltyDS Posted February 5, 2006 Posted February 5, 2006 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... Maybe some scripter out there could turn that into an AutoIT UDF... hmm... hint, hint... 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
DeFuser Posted February 5, 2006 Posted February 5, 2006 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!
Moderators SmOke_N Posted February 5, 2006 Moderators Posted February 5, 2006 (edited) 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 February 5, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now