2020/01/03 #-PassThruパラメータ

皆様おはようございます、

#猫でもできるPowerShell(備忘録)

#-PassThruパラメータ

-PassThru パラメーターは、Windows PowerShell の多数の Set

コマンドで、既定の出力がない場合に結果についての情報を返すために使用できます。

https://docs.microsoft.com/ja-jp/powershell/scripting/samples/managing-current-location?view=powershell-6

仕事で使った事が無いですが

-WhatIf パラメータと使い分けするような物でしょうか

ではまた;