SHARE
TWEET

Untitled

a guest Jun 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. powershell -noexit "& "'\SERVER.comImageDeploymentShare$Scriptsscript_tes_2t.ps1'
  2.      
  3. .%SCRIPTROOT%
  4.      
  5. Filename RunPowerShell.cmd
  6. Powershell -Command Set-ExecutionPolicy Unrestricted
  7. Powershell.exe -file "%~dp0%1"
  8. Powershell -Command Set-ExecutionPolicy AllSigned
  9.  
  10. Filename App1.ps1
  11. Dir
  12.  
  13. Execute this with
  14. [fulle_Path_if_needed]RunPowerShell.cmd App1.ps1
  15.      
  16. powershell.exe -executionpolicy bypass -noprofile -noninteractive -file ".[yourscriptfile].ps1"
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