Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 749505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:26:32+00:00 2026-05-14T14:26:32+00:00

I’m currently in the process of upgrading old II6 automation scripts that use the

  • 0

I’m currently in the process of upgrading old II6 automation scripts that use the IISVdir tool to create/modify/update apps and virtual directories, and replacing them with AppCmd for IIS7.

The IIS6, “IISVDir” commands reference paths in that are from the metabase, eg, /W3SVC/1/ROOT/MyApp – where 1 is ID of “Default Web Site”. The command doesn’t actually require the display name of the site to make changes to it.

This works well, since on a different language OS, the “Default Web Site” site name could be named, for example, “既定の Web サイト” or anything else for that matter. But this flexibility is lost if AppCmd can only reference “Default Web Site” via its name, and not a language-neutral identifier.

So, how can I script AppCmd to refer to sites, vdirs and apps using language neutral identifiers to reference the “Default App Site”?

Perhaps I need to start creating my own site instead, from the start, and name it something else specific, and stop using “Default Web Site” as the root?

Example of it in Japanese

(Disclosure: I only have a IIS7-English machine that I am working on currently, but I have both IIS6-English and IIS6-Japanese machines for testing my old scripts – so perhaps it really is just “Default Web Site” still on IIS7-Japanese?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:26:33+00:00Added an answer on May 14, 2026 at 2:26 pm

    The APPCMD tool appears only work with the site name (mostly). I asked a similar question on Server Fault a while back about exactly the same issue:

    How do I reference a site by ID using IIS7 APPCMD? (ServerFault.com)

    If you want to start working with the site by ID then you need to do this programmatically, for example:

    int iisNumber = 1; // The default website
    using (ServerManager serverManager = new ServerManager())
    {
      var site = serverManager.Sites
           .Where(s => s.Id == iisNumber)
           .SingleOrDefault();
    
      if(site != null)
      {
        site.Stop();
    
        // Do stuff to site...
    
        site.Start();
      }
      serverManager.CommitChanges();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.