Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement