C:\Users\Administrator>powershell -ExecutionPolicy Bypass
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.
PS C:\Users\Administrator> import-module WebAdministration
PS C:\Users\Administrator> get-website | select name,id,state,physicalpath, @{n="Bindings"; e= { ($_.bindings | select -expa collection) -join ';' }} ,@{n="LogFile";e={ $_.logfile | select -expa directory}}, @{n="attributes"; e={($_.attributes | % { $_.name + "=" + $_.value }) -join ';' }} |Export-Csv -NoTypeInformation -Path C:\sites_list.csv
PS C:\Users\Administrator>
Thứ Hai, 17 tháng 9, 2018
Using Powershell list of websites IIS using get-website
Share This!
Đăng ký:
Đăng Nhận xét (Atom)
Không có nhận xét nào:
Đăng nhận xét