Maybe depends on the version. I am running XP Pro with IIS 5.1. Start -> Control Panel -> Administrative Tools -> Internet Information Services, click Help ->About Internet Information Services
Whilst this code will work for most users, it does assume that the system drive is the C: drive and that Windows directory has not been renamed.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
sudiptasarka...
Member
40 Points
8 Posts
How to determine the IIS version
Dec 17, 2003 03:48 PM|LINK
jmiller4
Participant
782 Points
157 Posts
Re: How to determine the IIS version
Dec 17, 2003 03:57 PM|LINK
markchristen...
Member
10 Points
2 Posts
Re: How to determine the IIS version
Dec 17, 2003 04:50 PM|LINK
jmiller4
Participant
782 Points
157 Posts
Re: How to determine the IIS version
Dec 17, 2003 05:08 PM|LINK
markchristen...
Member
10 Points
2 Posts
Re: How to determine the IIS version
Dec 17, 2003 06:09 PM|LINK
sbradk
Participant
1110 Points
224 Posts
ASPInsiders
Re: How to determine the IIS version
Dec 17, 2003 06:18 PM|LINK
MCSE, ASPInsider
www.orcsweb.com
jywon
Member
2 Points
1 Post
Re: How to determine the IIS version
May 29, 2009 03:59 PM|LINK
Go to Administrative Tools, Internet Information Server and when the MMC opens it will display your computername and IIS version.
duttavr
Contributor
4035 Points
1079 Posts
Re: How to determine the IIS version
Feb 12, 2010 11:08 AM|LINK
thanks it also helped me.
Please Mark as Answer, if it answers you, also correct me if I'm wrong.
headros
Member
30 Points
51 Posts
Re: How to determine the IIS version
Feb 13, 2010 07:08 PM|LINK
Try this:
FileVersionInfo verinfo =
FileVersionInfo.GetVersionInfo(@"C:\WINNT\system32 \inetsrv\inetinfo.exe");
MessageBox.Show(verinfo.FileMajorPart);
MessageBox.Show(verinfo.FileVersion);
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: How to determine the IIS version
Feb 16, 2010 01:36 PM|LINK
Whilst this code will work for most users, it does assume that the system drive is the C: drive and that Windows directory has not been renamed.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239