By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,508 Members | 1,823 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,508 IT Pros & Developers. It's quick & easy.

Detect Operating System Service Pack

P: n/a
Dear Support,

I'm not an ASP programmer, however so far by searching the web, I have
created this working code:

<html>
<body>
<p>
<p>
<b>School IP address:</b>
<%Response.Write(Request.ServerVariables("remote_a ddr"))%>
</p>
<b>Browser:</b>
<%= Request.Browser.Browser %>
</p>
<b>Browser Version:</b>
<%= Request.Browser.Version %>
</p>
<b>ActiveX Controls Enabled:</b>
<%= Request.Browser.ActiveXControls %>
</p>
<b>Operating System:</b>
<%= Request.Browser.Platform%><br>
</body>
</html>

Which detects IP, Browser, Browser Version and OS. How can I detect the OS
Service Pack which is installed? Thank you!
Mar 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This is what the CGI "http_user_agent" returns for my XP SP2 system.

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322;
..NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

So it does not look like you can retrive this using "server side" code.

The information you are picking up is only what the browser chooses to pass
on when it makes a request to the server. I guess with Web servers / web
developers browser version and .Net framework version is more important than
the service pack level of OS.

Mike.
"Mike" <Mi**@discussions.microsoft.comwrote in message
news:F0**********************************@microsof t.com...
Dear Support,

I'm not an ASP programmer, however so far by searching the web, I have
created this working code:

<html>
<body>
<p>
<p>
<b>School IP address:</b>
<%Response.Write(Request.ServerVariables("remote_a ddr"))%>
</p>
<b>Browser:</b>
<%= Request.Browser.Browser %>
</p>
<b>Browser Version:</b>
<%= Request.Browser.Version %>
</p>
<b>ActiveX Controls Enabled:</b>
<%= Request.Browser.ActiveXControls %>
</p>
<b>Operating System:</b>
<%= Request.Browser.Platform%><br>
</body>
</html>

Which detects IP, Browser, Browser Version and OS. How can I detect the OS
Service Pack which is installed? Thank you!

Mar 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.