Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PowerShell V3 で、Get-Website コマンドに問題があります。
私がするたびに
PS c:\> Get-Website -Name "MyWebsite"
そのサーバー上のすべての Web サイトを返します。コマンドの動作が異なるか、間違っているかのいずれかです。
返されたオブジェクトに対して Get 型を実行すると、それは Array 型になります。私がそれを正しく理解していれば、1 つの Web サイトのみが返されるはずです。
お知らせ下さい。
どうやらコマンドバグリンクにバグがあります
名前をワイルドカード文字でラップすると、次のように機能します。
get-website -name "*MyWebsite*"