Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit fee1aa8

Browse files
We don't know what app pools exist, so don't try to set them
1 parent bf51d16 commit fee1aa8

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

‎examples/02-CreateSite-Advanced/IIS.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ $site = Get-IISSite -Name "Website1"
2222
$site.Id = 4
2323
$site.Bindings.Add("*:8023:", "http")
2424
$site.Bindings.Add("*:8024:", "http")
25-
$site.Applications["/"].ApplicationPoolName = ".NET v4.5";
2625

2726
Stop-IISCommitDelay -Commit $true
2827

‎examples/02-CreateSite-Advanced/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Most likely, you'll want to specify a few extra settings when creating a real site. To do that, you can get the site after creating it, and add the extra settings. Since we are making multiple changes, we can use delayed commits to write them all to applicationHost.config at once.
44

5-
Here we'll add an additional binding, and set the ID and Application Pool.
5+
Here we'll add an additional binding, and set the site ID.

‎examples/02-CreateSite-Advanced/Web.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Import-Module WebAdministration
1717
New-Item -Path "IIS:\Sites" -Name "Website1" -Type Site -Bindings @{protocol="http";bindingInformation="*:8021:"}
1818
Set-ItemProperty -Path "IIS:\Sites\Website1" -name "physicalPath" -value "C:\Sites\Website1"
1919
Set-ItemProperty -Path "IIS:\Sites\Website1" -Name "id" -Value 4
20-
Set-ItemProperty -Path "IIS:\Sites\Website1" -Name "applicationPool" -Value ".NET v4.5"
2120
New-ItemProperty -Path "IIS:\Sites\Website1" -Name "bindings" -Value (@{protocol="http";bindingInformation="*:8022:"}, @{protocol="http";bindingInformation="*:8023:"})
2221

2322
Start-Website -Name "Website1"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /