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では、次の間に違いがありますか?
ps theProcessName* | kill
と
kill -processname theProcessName*
ありがとう
最初の例では、PowerShellパイプラインを使用して、System.Diagnostics.Processオブジェクト(からGet-Process)をStop-Processコマンドレットにパイプ処理しています。
System.Diagnostics.Process
Get-Process
Stop-Process
Stop-Process2番目の例では、コマンドレットを直接呼び出し、名前付きパラメーターを使用して文字列を渡し、プロセス名と照合します。