Reputation: 9854
In PowerShell V3, I am having issue with Get-Website command.
Whenever I do
PS c:\> Get-Website -Name "MyWebsite"
It returns all the websites on that server. It is either the command is behaving differently or I am getting it wrong.
If I do a Get-type on the returned object then it is of type Array. If I understand it right then it should only return one website.
Please advise.
Upvotes: 1
Views: 700
Reputation: 1269
Apparently there is a bug with the command bug link
Wrapping the name in wildcard characters works:
get-website -name "*MyWebsite*"
Upvotes: 4