Jump to content

Win2003 and WinPE question


Recommended Posts

I'm just wondering what Windows 2003 Server returns for the following macros.

@OSType

@OSVersion

@OSBuild

@OSServicePack

Likewise for WinPE if anyone has it.....

FYI, I tested BartPE built from WinXP SP2 and it returned:

@OSType = WIN32_NT

@OSVersion = WIN_XP

@OSBuild = 2600

@OSServicePack = (empty string)

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

I am not really sure Jon, remember the NTSwitch fiasco? How close the different versions of windows are, with only a small registry file entry telling the difference between server & workstation.

BTW, NTSwitch was removed due to pressure from Microsoft, and it can also cause harm to XP machines in certain instances. The program was considered a hack that would allow a win2000 machine that had a 10 user limit on it for file sharring to act like a server with unlimited users. Basically it only changed a couple registry files.

Bart PE takes it's OS from whatever OS you gave it when you made it. I am not sure what other PE versions would return. I will see if I can find some other ones and run AutoIt on them.

You can read the reg entry: hkey_local_machine\system\current controlset\control\productoptions\producttype

it should return one of 3 values:

Winnt=Workstation

Servernt=Server

Lanmannt=Advanced Server

Not sure if this changed with 2003. BTW you can't just change this value and have a server, there are more than 400 different files in server vs workstation, and they put safeguards in place to stop a few key registry values from being changed.

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

Here's info for detecting WinPE and BartPE; I don't know if you want to add it to the @OSVersion macros:

Q: When I'm writing a program how can I detect if I'm running BartPE or WinPE?

A: You must check if a registry key exists...

To check if running any PE (WinPE or BartPE): HKLM\system\currentcontrolset\control\minint

To check if running BartPE: HKLM\system\currentcontrolset\control\pebuilder

Thanks for the addition, by the way.

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

@CyberSlug, Windows PE is Windows XP and there is no differences except in the boot loader. Believe me, I know that WinPE is licensed as a separate os by microsoft, but can't you simply regread that minint entry in your script? Asking Jon to change AutoIt for WinPE is like asking him to change it for Windows XP Embedded. It is XP.

Who else would I be?
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...