3

I'm by no means a sysadmin so please correct me if I'm wrong.

I want to run aspnet_regiis.exe -s. This requires the metabase path of my website.

How do I find this metabase path?

Kent Fredric
  • 56,416
  • 14
  • 107
  • 150
Boris Callens
  • 90,659
  • 85
  • 207
  • 305

2 Answers2

4

Just run aspnet_regiis.exe -lk to see a list of the registered applications, their metabase paths and the version of the .NET framework installed for this application.

Also, here are a couple of links that you can use to find the metabase path:

HTH,

Don

Don Worthley
  • 114
  • 3
  • Wow, that first link is a waste of time! It took me 10 mins to figure out the code is not complete... Not to complain about Don, but complaining about MSDN... – pauloya Sep 16 '10 at 17:26
  • 1
    Is this different on new IIS/.NET versions? when I run aspnet_regiis.exe -lk (from the Visual Studio 2010 command prompt) I just get the help for aspnet_regiis, (which actually includes -lk, but it doesn't seem to work) – Wiebe Tijsma Aug 08 '11 at 14:08
  • 1
    Never mind, just read: "Not supported on Windows Vista and higher versions" – Wiebe Tijsma Aug 08 '11 at 14:16
1

For versions of Windows higher than Vista, try appcmd, with the "list site" commands:

%WindowsDirectory%\system32\inetsrv\appcmd list site

This should give you the site name and id for all the sites on the system.

The metabase path is of the form

/W3SVC/<site id>/Root

plus the site id.

Slider345
  • 4,558
  • 7
  • 39
  • 47