PowerTip: Find Cmdlets that Need TimeSpan Object

The Scripting Guys


Summary: Use Get-Command to find cmdlets that need a TimeSpan object for input.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find which cmdlets will accept a TimeSpan object for input?

Hey, Scripting Guy! Answer Use the ParameterType parameter from the Get-Command cmdlet, for example:

Get-Command -ParameterType timespan

The Scripting Guys
Dr Scripto

Follow Dr   

No Comment.