Quantcast
Channel: IIS on mikefrobbins.com
Viewing all articles
Browse latest Browse all 14

Rename an IIS Web Application with PowerShell

$
0
0
Want to rename an IIS Web Application on a Windows 2008 R2 server? It's not possible from the GUI, but it's simple to accomplish using PowerShell. First, let's create a web application in an existing website and then verify it exists: 1Import-Module WebAdministration 2New-Item -ItemType Directory -Path d:\iis\robbinsapps 3New-WebApplication -Name RobbinsApps -Site MikeFRobbins -PhysicalPath d:\iis\robbinsapps -ApplicationPool "ASP.NET v4.0" 4Get-ChildItem iis:\sites\mikefrobbins Here it is in the GUI: Rename the web application using PowerShell and then verify it was renamed:

Viewing all articles
Browse latest Browse all 14

Trending Articles