简体   繁体   中英

How do I run a PowerShell script “in” IIS?

I'm reading up on a particular command (SET-WEBCONFIGURATIONPROPERTY) and I'm getting the "is not recognized as a cmdlet" error. Suggests to me that I'm missing a snap-in of some sort, even though I'm using the SharePoint PowerShell , which I was under the impression came with most.

On reading up a bit, a lot of the examples seem to display "IIS:> SET-WEB....." .

  1. How have they managed to work within IIS in the PowerShell console ?
  2. Is there a special PowerShell console or am I missing a snap-in?
Import-Module WebAdministration
cd IIS:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM