简体   繁体   English

Powershell脚本导出IIS网站详细信息

[英]Powershell script to export IIS website details

I need to extract all the website details created in our IIS server with the following details. 我需要使用以下详细信息提取在IIS服务器中创建的所有网站详细信息。 As we have more than 80 sites created in our IIS server, I am searching for an easier way to export these details. 由于我们在IIS服务器中创建了80多个站点,因此我正在寻找一种导出这些详细信息的简便方法。

details required : 所需详细信息:

  • Website Name 网站名称
  • Bindings 绑定
  • State
  • DB Server name [mapped in connection string] 数据库服务器名称[映射在连接字符串中]
  • DB Name [mapped in connection string] 数据库名称[映射在连接字符串中]

I am able to extract all the details except DB related available in connection strings using get-website cmdlet. 我可以使用get-website cmdlet提取连接字符串中可用的与DB相关的所有详细信息。 Requesting your help if you know any better way to extract all the information under single file. 如果您知道任何更好的方法来提取单个文件下的所有信息,请寻求帮助。

您应该能够从IIS模块文档中找到所需的一切: https : //technet.microsoft.com/zh-cn/library/ee790599.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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