Mahesh
Mahesh

Reputation: 1689

How to setup default document for a IIS website from command prompt?

I want to set default document for a IIS website from command prompt.

May I know how to setup this..

Thanks, Mahesh

Upvotes: 1

Views: 1699

Answers (1)

user1102001
user1102001

Reputation: 707

You can use appcmd.exe:

 appcmd set config /section:defaultDocument /enabled:true|false

Check appcmd help at MSDN (or here) for more information.

http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe

Upvotes: 2

Related Questions