Automating the batch file with parameters #221
-
First of all I'm super grateful for this tool. Raphire, you have put in a lot of work into this and it shows with the complete interface and overall experience provided. I am looking to automate this tool using a batch file or the Powershell file, however, I am running into a little trouble figuring out where to add the parameters. Specifically, this line below
I have tried adding -Silent -RemoveApps right before -Verb RunAs}" and I see either a Powershell or CMD window pop up very briefly with red text, presumably an error, then the window closes. The tool works as-is without the Silent or RemoveApps parameters but needs manual input. I have searched discussions and issues and have seen you input a command into task scheduler to automate this, however, it calls upon the online repo to download the latest version. I need to refer to a local version of the repo instead, so if this can be done with Task Scheduler instead this would also be helpful. Any assistance with this is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
hi try to use start-transcript to see the errors on the terminal |
Beta Was this translation helpful? Give feedback.
-
Heya, Launching the script with arguments via a batch file is a bit cumbersome. The only reason I still include the batch file is because it's the only way to provide a '1-click' way to launch the script, without having to manually execute a few commands. Instead, you should be able to do accomplish this using the instructions in the other discussion you already mentioned. The only change you want to make is during this step: Here you need to replace the argument setting with: (Change path to the location you downloaded/moved the script folder to)
Let me know if it works for ya! |
Beta Was this translation helpful? Give feedback.
Heya,
Launching the script with arguments via a batch file is a bit cumbersome. The only reason I still include the batch file is because it's the only way to provide a '1-click' way to launch the script, without having to manually execute a few commands.
Instead, you should be able to do accomplish this using the instructions in the other discussion you already mentioned.
The only change you want to make is during this step:
Here you need to replace the argument setting with: (Change path to the location you downloaded/moved the script folder to)
Let me know if it works for ya!