Are the properties in Power Shell FTP module(WebAd

2019-07-21 03:33发布

问题:

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.