Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9117285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:52:04+00:00 2026-06-17T04:52:04+00:00

I need a Powershell command that does the equivalent of adding a website in

  • 0

I need a Powershell command that does the equivalent of adding a website in IIS, but need the bindings for the “Application pool”:

enter image description here

So far I can add a website doing this:

New-Item iis:\Sites\swmarket -bindings @{protocol="http";bindingInformation="80:swmarket"} -physicalPath c:\inetpub\wwwroot

But I don’t know how to set the “Application pool” in the new website. Any way to see all the bindings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:52:04+00:00Added an answer on June 17, 2026 at 4:52 am
    Set-ItemProperty iis:\Sites\swmarket -Name applicationpool -Value swmarket
    

    Alternatively, with Powershell 3, you could do this:

    New-WebAppPool -Name $WebSiteName
    New-Website -Name $WebSiteName -ApplicationPool $WebSiteName -HostHeader $WebSiteName -PhysicalPath $PathInfo -Port 80
    Set-Content $PathInfo\default.htm “PSCreated Default Page”
    

    Check out the MS Technet description here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am in need of a script or powershell command that will be able
How I can write a function or alias a command in PowerShell so that
I have a command line executable that I need to call repeatedly in PowerShell
I have a sorted numeric array in powershell. I need a powershell command that'll
When working with powershell cmdlets, I often find that I need to set a
I am writing C# application that need to print data to POS STAR printer
I have a PowerShell script that configures web site and web application settings in
I'm running a Powershell test script from a C# application. The script can fail
Does anybody know a powershell 2.0 command/script to count all folders and subfolders (recursive;
Is there any command equivalent to webget in WindOS's PowerShell? I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.