cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Jennifer_Hayes
Engaged Sweeper
I have PS script (that works locally) to change the registry key that enables/disables the windows firewall. I'm unable to get it to work via the installer and I'm not sure how to create custom actions yet (very new here).
Am I making this harder than it has to be?
2 REPLIES 2
Jennifer_Hayes
Engaged Sweeper
Thanks! I did get a reg key change script with just a regular "Add Key" function to work (forcing overwrite.)
I was, in fact, making this particular task too difficult!
Esben_D
Lansweeper Employee
Lansweeper Employee
PS scripts can be a bit tricky in the deployment because you can't just run them as a script in a deployment package. It it better to run them as a command to make sure no execution policy is stopping the script.

Have a look here: https://www.lansweeper.com/forum/yaf_postst10730_PowerShell-from-Deployment-Package.aspx#post40186