Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to edit the Description property of a Web Application after the application has been created?

I can't seem to find any way of doing so via any of the administration options in the SharePoint Web Application Management section of Central Administration.

(I'm referring to the field called 'Description' when you create a web application via the Create New Web Application page in Central Administration. It's also listed as the 'Name' of the web application if you view the Web Application List.)

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

The Description text field correlates to the Microsoft.SharePoint.Administration.SPWebApplication.Name property in the object model. This is the only way I know of changing this.

The following code (ignoring import statements) is what I used from the IronPython console, though you could also use PowerShell. (C# or VB makes for too much messing around)

>> site = SPSite("http://somesite")
>> wa = site.WebApplication
>> print wa.Name
'somesite'
>> wa.Name = "This is the new name"
>> wa.Update()
>> print wa.Name
'This is the new name'

This will also update wa.DisplayName, which is a Read-Only property. You will see the change in Central Admin. The web name in IIS will not change as this is just a label. The URL for the site collection 'somesite' will not change either.

I don't know if this is a bad idea - Microsoft lets you do it though. If it is a bad idea, I hope someone else will say so here.

Mike

share|improve this answer
    
Thanks for that, especially for alerting me to the fact that you can use IronPython to interact with SharePoint -- I had no idea! –  ngm Jun 4 '10 at 13:23
    
I find IronPython so much easier than dealing with Powershell. The learning curve for a C# user is so much shorter. When importing the Microsoft.SharePoint assembly, I needed to use the strong name, rather than just Microsoft.SharePoint –  Mike H Jun 6 '10 at 23:51
add comment

Can u open the Website in IIS and change the description

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.