Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\Administrator> cat C:\ranl.ps1
- $ErrorActionPreference = "Stop"
- cat c:\dummy | Get-NetIPAddress
- Write-Host 'We should never get here'
- PS C:\Users\Administrator> echo dummy > c:\dummy
- PS C:\Users\Administrator> C:\ranl.ps1
- Get-NetIPAddress : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
- At C:\ranl.ps1:2 char:16
- + cat c:\dummy | Get-NetIPAddress
- + ~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (dummy:PSObject) [Get-NetIPAddress], ParameterBindingException
- + FullyQualifiedErrorId : InputObjectNotBound,Get-NetIPAddress
- We should never get here
- PS C:\Users\Administrator>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement