it技術:powershell
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
it技術:powershell [2019/07/23 14:49] – 作成 yajuadmin | it技術:powershell [2019/07/24 13:07] – [IISのDefault Web Siteの値取得] yajuadmin | ||
---|---|---|---|
行 24: | 行 24: | ||
</ | </ | ||
+ | ==== IISのDefault Web Siteの値取得 ==== | ||
+ | Default Web Siteの値を取得する | ||
+ | <code powershell> | ||
+ | PS > Get-ItemProperty ' | ||
+ | |||
+ | name : Default Web Site | ||
+ | id : 1 | ||
+ | serverAutoStart | ||
+ | state : Started | ||
+ | bindings | ||
+ | limits | ||
+ | logFile | ||
+ | traceFailedRequestsLogging : Microsoft.IIs.PowerShell.Framework.ConfigurationElement | ||
+ | applicationDefaults | ||
+ | virtualDirectoryDefaults | ||
+ | ftpServer | ||
+ | Collection | ||
+ | | ||
+ | applicationPool | ||
+ | enabledProtocols | ||
+ | physicalPath | ||
+ | userName | ||
+ | password | ||
+ | ItemXPath | ||
+ | PSPath | ||
+ | PSParentPath | ||
+ | PSChildName | ||
+ | PSDrive | ||
+ | PSProvider | ||
+ | PSIsContainer | ||
+ | Attributes | ||
+ | ChildElements | ||
+ | ElementTagName | ||
+ | Methods | ||
+ | Schema | ||
+ | </ | ||
+ | |||
+ | ASPプロパティ内のセッションプロパティの値を取得する。 | ||
+ | <code powershell> | ||
+ | PS > Get-WebConfiguration system.webServer/ | ||
+ | |||
+ | PS > Get-WebConfiguration -PSPath ' | ||
+ | |||
+ | PS > Get-WebConfigurationProperty -Location ' | ||
+ | |||
+ | PS > Get-WebConfigurationProperty -PSPath ' | ||
+ | </ | ||
==== 二重引用符はエスケープ ==== | ==== 二重引用符はエスケープ ==== | ||
VBScriptからPowerShellを呼び出す際に二重引用符が使用されている場合には、「\" | VBScriptからPowerShellを呼び出す際に二重引用符が使用されている場合には、「\" | ||
行 30: | 行 77: | ||
name = " | name = " | ||
command = " | command = " | ||
- | info = " | + | info = " |
Sub SetDicItems(dic, | Sub SetDicItems(dic, |
it技術/powershell.txt · 最終更新: 2019/07/24 13:09 by yajuadmin