dstempfley
asked on
How I determine OS Type with KiXtart
I've found the @DOS and @PRODUCTTYPE macros within KiXtart to get the OS information, but I can't find a reference that will tell me the possible values and how they relate to the operating system version. For example on my Windows 7 installation @DOS returns 6.1
I've also seen VBScript code that gets information from winmgmts: Win32_Operatingsystem Caption
If I'm trying to write and enterprise script that is going to do its best anticipate the returning values what is the most reliable way to get the operating system version.
My current problem is that I am trying to read the logon provider from the registry and the location is different when you use Windows 7.
For Windows 7 I use:
Temp = ReadReg("HKEY_LOCAL_MACHIN E\SOFTWARE \Microsoft \Windows\C urrentVers ion\Authen tication\L ogonUI\Las tLoggedOnP rovider")
LogonProvider = "HKEY_LOCAL_MACHINE\SOFTWA RE\Microso ft\Windows \CurrentVe rsion\Auth entication \Credentia l Providers\" & Temp & "\"
Temp = ReadReg(LogonProvider)
For other Windows I use:
Temp = ReadReg("HKEY_LOCAL_MACHIN E\Software \Microsoft \Windows NT\CurrentVersion\Winlogon \DefaultUs erName")
Thank you,
Dion
I've also seen VBScript code that gets information from winmgmts: Win32_Operatingsystem Caption
If I'm trying to write and enterprise script that is going to do its best anticipate the returning values what is the most reliable way to get the operating system version.
My current problem is that I am trying to read the logon provider from the registry and the location is different when you use Windows 7.
For Windows 7 I use:
Temp = ReadReg("HKEY_LOCAL_MACHIN
LogonProvider = "HKEY_LOCAL_MACHINE\SOFTWA
Temp = ReadReg(LogonProvider)
For other Windows I use:
Temp = ReadReg("HKEY_LOCAL_MACHIN
Thank you,
Dion
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Older windows versions are printed on kixstart help pages
http://www.adminscripteditor.com/syntax.asp?act=v&id=44
In addition, you can use @BUILD, which returns the build number of the os.
If you are still using WinME or older, @INWIN could also be helpful:
http://www.adminscripteditor.com/syntax.asp?r=1&act=v&id=45