Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. outputLines = somecommand.exe 2>&1
  2. if ($outputLines -match 'Result' -match 'Failed')
  3. {
  4. echo $outputLines > C:\Scripts\Failure.log
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement