Advertisement
adamchilcott

bypassPolicy.cmd

Sep 27th, 2018
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.05 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. REM ###############################
  6. REM # Execute PowerShell Script
  7. REM # Without Setting Global Policy
  8. REM ###############################
  9.  
  10. powershell -ExecutionPolicy Bypass -File myCoolScript.ps1
  11.  
  12. REM #############
  13. REM # START NOTES
  14. REM #############
  15.  
  16. REM # 2-clause license ("Simplified BSD License" or "FreeBSD License")
  17. REM #
  18. REM # Copyright © 2018, Adam Brian Chilcott
  19. REM # All rights reserved.
  20. REM #
  21. REM # Redistribution and use in source and binary forms, with or without
  22. REM # modification, are permitted provided that the following conditions are met:
  23. REM #
  24. REM # 1. Redistributions of source code must retain the above copyright notice, this
  25. REM # list of conditions and the following disclaimer.
  26. REM # 2. Redistributions in binary form must reproduce the above copyright notice,
  27. REM # this list of conditions and the following disclaimer in the documentation
  28. REM # and/or other materials provided with the distribution.
  29. REM #
  30. REM # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  31. REM # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  32. REM # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  33. REM # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  34. REM # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  35. REM # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  36. REM # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  37. REM # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  38. REM # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  39. REM # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. REM #
  41. REM # The views and conclusions contained in the software and documentation are those
  42. REM # of the authors and should not be interpreted as representing official policies,
  43. REM # either expressed or implied, of the FreeBSD Project.
  44.  
  45. REM ###########
  46. REM # END NOTES
  47. REM ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement