The GoTo Community is currently experiencing some technical issues affecting new posts and comments. You may need to reload the page you are on before you can post a comment. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
jozsef_sarosi
2 years agoGoTo Contributor
How to execute PS1 files as Rescue Scripts (template)
The execution of Rescue scripts needs some special knowledge from the script writers, especially when the applet side script or binary is not a directly executable code. Such are PowerShell scripts...
Rizwan86
2 years agoNew Member
To execute PS1 files as Rescue Scripts: Create a Starter CMD Script: Use a CMD script to invoke the PowerShell script, ensuring it waits for completion and handles logging. Run PowerShell Script: Call the PS1 file from the CMD script using powershell -ExecutionPolicy Bypass -File "path\to\script.ps1". Manage Cleanup and Logs: Ensure the CMD script manages cleanup after the PS1 script finishes and collects logs for review.