%@ Language=VBScript %> <% '================================================== ' Microsoft Server Appliance ' ' About Page ' ' Copyright (c) Microsoft Corporation. All rights reserved. '================================================== %> <% Option Explicit %> <% Const ABOUT_BOX_CONTAINER = "AboutBox" '----------------------------------------------------- 'START of localization content Dim L_PAGETITLE_TEXT Dim L_ABOUTLBL_TEXT Dim L_MIC_WINDOWS_TEXT Dim L_VERSION_TEXT Dim L_COPYRIGHT_TEXT Dim L_WIN2K_COPYRIGHT Dim L_PRODUCTID_TEXT Dim L_WARNING_TEXT Dim L_OS_BUILD_NUMBER Dim m_strResourceDLL Dim m_strAboutResourceDLL m_strResourceDLL = "sakitmsg.dll" L_PAGETITLE_TEXT = GetLocString(m_strResourceDLL, "&H40010005", "") L_ABOUTLBL_TEXT = GetLocString(m_strResourceDLL, "&H40010006", "") L_MIC_WINDOWS_TEXT = GetLocString(m_strResourceDLL, "&H40010007", "") L_COPYRIGHT_TEXT = GetLocString(m_strResourceDLL, "&H40010009", "") L_PRODUCTID_TEXT = GetLocString(m_strResourceDLL, "&H4001000A", "") L_WARNING_TEXT = GetLocString(m_strResourceDLL, "&H4001000B", "") L_OS_BUILD_NUMBER = GetLocString(m_strResourceDLL, "&H40010038", "") L_WIN2K_COPYRIGHT = GetLocString(m_strResourceDLL, "&H400107D0", "") 'End of localization content '----------------------------------------------------- ServeAbout() Function ServeAbout() Dim objAM Dim objOS Dim objHelper Dim obj Dim strOSName Dim strOSBuildNumber Dim strBuildNum Dim strPID Dim iSP Dim strReturnURL Dim aBuildNumber(1) Dim repStrings on error resume next Err.Clear strReturnURL = Request("ReturnURL") Set objAM = GetObject("WINMGMTS:" & SA_GetWMIConnectionAttributes() &"!\\" & GetServerName & "\root\cimv2:Microsoft_SA_Manager=@" ) If ( Err.Number <> 0 ) Then Call SA_TraceOut(SA_GetScriptFileName(), "Get Microsoft_SA_Manager failed: " + CStr(Hex(Err.Number)) + " " + Err.Description) Exit Function End If set objOS = GetObject("WINMGMTS:" & SA_GetWMIConnectionAttributes() &"!\\" & GetServerName & "\root\cimv2:Win32_OperatingSystem").Instances_ If ( Err.Number <> 0 ) Then Call SA_TraceOut(SA_GetScriptFileName(), "Get Win32_OperatingSystem failed: " + CStr(Hex(Err.Number)) + " " + Err.Description) Exit Function End If for each obj in objOS strOSName = obj.Caption strOSBuildNumber = obj.BuildNumber iSP = obj.ServicePackMajorVersion exit for next Dim strWinOS strWinOS = GetLocString("sacoremsg.dll", "40200BC6", "") if strOSName = strWinOS then if iSP = 1 then Err.Clear set objHelper = Server.CreateObject("ServerAppliance.SAHelper") if Err.Number = 0 then if objHelper.IsWindowsPowered() = true then strOSName = GetLocString("sacoremsg.dll", "40200BC7", "") end if set objHelper = Null end if end if end if aBuildNumber(0) = objAM.CurrentBuildNumber strPID = objAM.ProductId Set objAM = Nothing repStrings = aBuildNumber L_VERSION_TEXT = GetLocString(m_strResourceDLL, "&H40010008", repStrings) %>
<% Call SA_EmitAdditionalStyleSheetReferences("") %>
<%=strOSName%> <%if iSP<>0 then response.write "SP " & iSP end if %> (<%=L_OS_BUILD_NUMBER%> <%=strOSBuildNumber%>) <%=L_PRODUCTID_TEXT%> <% =strPID %> <%=L_WIN2K_COPYRIGHT%> <%=L_WARNING_TEXT%> |