Reputation: 523
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?
Upvotes: 2
Views: 216
Reputation: 58991
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.
Upvotes: 1