Are the properties in Power Shell FTP module(WebAdministration) Case-Sensitive?

纵然是瞬间 提交于 2019-12-10 23:32:40

问题


PowerShell is case insensitive language and so are the modules like WebAdministration expected to be.

This doesn't work:

PS IIS:\AppPools> Set-ItemProperty .\DefaultAppPool -Name Enable32BitAppOnWin64 -Value $true

Whereas this works:

PS IIS:\AppPools> Set-ItemProperty .\DefaultAppPool -Name enable32BitAppOnWin64 -Value $true

Difference is only in capital and small letter 'e' in property name. Moreover, the first command doesn't even throw any error.

Can anyone explain this behaviour?


回答1:


This is probably a bug since the behaviour differs for different Windows versions (e. g. for Windows 10, the first letter must be lowercase whereas for Windows 7 not).

There is also a related question on SO.



来源:https://stackoverflow.com/questions/38186101/are-the-properties-in-power-shell-ftp-modulewebadministration-case-sensitive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!