Guest User

Powershell redirection error

a guest
Nov 4th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. PS D:\> write-host hello 2>&1
  2. hello
  3. PS D:\> write-host hello 3>&1
  4. Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
  5. At line:1 char:21
  6. + write-host hello 3>& <<<< 1
  7. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  8. + FullyQualifiedErrorId : AmpersandNotAllowed
  9.  
  10. PS D:\>
Advertisement
Add Comment
Please, Sign In to add comment