The GoTo Community is currently experiencing some technical issues affecting new posts and comments. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
cccn714
8 years agoActive Contributor
Can Powershell Scripts be ran from One2Many
I am trying to run a .ps1 script using One2Many. I have pushed a file to a system file.ps1. Then I want to execute it via a seperate One2Many task. I have tried executing it directly with a Custom ta...
- 8 years ago
Thanks will be reworking the scripts and custom tasks soon and will let the thread know the results when I do.
Beep-Beep
8 years agoActive Contributor
Custom task.
Upload .ps1 and any other resources needed
Command:
powershell -executionpolicy bypass -file <name of file you uploaded>.ps1
cccn714
8 years agoActive Contributor
Thanks will be reworking the scripts and custom tasks soon and will let the thread know the results when I do.
- cccn7148 years agoActive Contributor
This is what worked.
Once the files were uploaded to the systems I created a .bat to run the following command
Powershell.exe -executionpolicy remotesigned -Command "C:\filepath\file.ps1"