CyberSlug Posted January 13, 2005 Share Posted January 13, 2005 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 More sharing options...
scriptkitty Posted January 13, 2005 Share Posted January 13, 2005 2003 server @OSType = WIN32_NT @OSVersion = WIN_XP @OSBuild = Varies, beta was 3790. I don't have one running atm. @OSServicePack = (empty string) AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 13, 2005 Administrators Share Posted January 13, 2005 That needs fixing I think. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
scriptkitty Posted January 13, 2005 Share Posted January 13, 2005 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 More sharing options...
Administrators Jon Posted January 13, 2005 Administrators Share Posted January 13, 2005 No, I meant that AutoIt is missing a "WIN_2003" OSVERSION.. I've just added it in. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
CyberSlug Posted January 14, 2005 Author Share Posted January 14, 2005 (edited) 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\minintTo check if running BartPE: HKLM\system\currentcontrolset\control\pebuilderThanks for the addition, by the way. Edited January 14, 2005 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 More sharing options...
this-is-me Posted January 14, 2005 Share Posted January 14, 2005 @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 More sharing options...
SlimShady Posted January 14, 2005 Share Posted January 14, 2005 I kinda agree with this-is-me. This would be a nice addition but not really important or necessary IMO. Link to comment Share on other sites More sharing options...
CyberSlug Posted January 14, 2005 Author Share Posted January 14, 2005 I wasn't asking him to change it; I was just offering a suggestion :"> 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 More sharing options...
MHz Posted January 14, 2005 Share Posted January 14, 2005 BartPE is useful to quite a alot of people. I think the suggestion has some good to it. Nothing wrong with a good idea? Link to comment Share on other sites More sharing options...
this-is-me Posted January 14, 2005 Share Posted January 14, 2005 @Cyberslug, No problem. @Mhz, the problem is that is not a separate OS. Who else would I be? Link to comment Share on other sites More sharing options...
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