I want to share how to rename the web application name in command line administration of MOSS 2007 using STSADM Command.
Syntax:
stsadm -o renameweb -url -newname
Example:
Stsadm -o renameweb -url http://localhost/oldname -newname newname
The above command will rename the web application from oldname to the newname.


Good and useful post
I tried to rename a web application from http://sharepoint to intranet using the command suggested but received the following error.
Cannot move the root web of a site
collection.
Any suggestions?
This command does NOT rename the Web Application it renames the Web URL
Seriously, very nice info. I went ahead and book-marked http://www.mstechblogs.com/sharepoint/moss-2007-rename-the-web-application-name/ at Digg since I think its worth sharing. Keep them coming.