Advertisement
easternnl

ErrorActionPreference

Sep 2nd, 2015
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #$ErrorActionPreference = "Continue"
  3. #$ErrorActionPreference = "Ignore"
  4. #$ErrorActionPreference = "Inquire"
  5. #$ErrorActionPreference = "SilentContinue"
  6. $ErrorActionPreference = "Stop"
  7. #$ErrorActionPreference = "Suspend"
  8.  
  9. ls N:\
  10.  
  11. write-host " Error occured"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement