SHARE
TWEET

Untitled

a guest Jun 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (get-content -path file) | set-content -path file -value { $_ -replace 1,2 }
  2.  
  3. set-content : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the
  4. input and its properties do not match any of the parameters that take pipeline input.
  5. At line:1 char:28
  6. + ... ntent -path file) | set-content -path file -value { $_ -replace 1,2 }
  7. +                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8.     + CategoryInfo          : InvalidArgument: (111:PSObject) [Set-Content], ParameterBindingException
  9.     + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.SetContentCommand
  10.  
  11. set-content : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the
  12. input and its properties do not match any of the parameters that take pipeline input.
  13. At line:1 char:28
  14. + ... ntent -path file) | set-content -path file -value { $_ -replace 1,2 }
  15. +                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16.     + CategoryInfo          : InvalidArgument: (111:PSObject) [Set-Content], ParameterBindingException
  17.     + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.SetContentCommand
  18.  
  19. set-content : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the
  20. input and its properties do not match any of the parameters that take pipeline input.
  21. At line:1 char:28
  22. + ... ntent -path file) | set-content -path file -value { $_ -replace 1,2 }
  23. +                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24.     + CategoryInfo          : InvalidArgument: (111:PSObject) [Set-Content], ParameterBindingException
  25.     + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.SetContentCommand
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top