4 Replies Latest reply on Dec 18, 2015 2:36 PM by Cody Dean

    Execute a powershell script using blpackage deploy job?

    John Donnelly

      Hi communities,

      I'm new to this scripting stuff.

      I have a BLdeploy job that pushes a powershell script to servers, using BSA Version 8.6.

      I see the job deploys the script to the server successfully and when I run the script on the server it does as expected, changes the DNS setting.


      $wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'"



      My question is how do I get the script to execute when it is deployed, automate the execution task?

      Also how best do I handle the Execution Policy setting on each server?

      Do I need to add the line - Set-ExecutionPolicy -ExecutionPolicy RemoteSigned