Powershell script to automate run exe file
I have this script that is designed to automatically run an exe file in administrator mode everytime the user turn on the computer and login.
When I run the script as administrator, it runs and there's no problem appeared but when I restart the computer and then loging in, the exe file isn't run at all.
I found out that: The Script does run, however, in the
Task Scheduler Library
it set as Queue
, so I need to make it run manually in Task Scheduler Library
.
But even so, when I try to restart the computer, the exe file still isnt executed.
When I check for the action, it seems right since I did run that action in cmd myself and the exe file is run as expect.
The action is showed as below:5 Replies
I also have checked for the triggered condition, it also seems fine too:
In the History, there's also the record to show that, the task actually does run up on computer started:
So my suspection right now is probably the script read the action wrongly so it cant run the exe file ? This is the first time I ever scripting with powershell, I'd be very grateful if any expert could have a look at it and point out the problem or give me some suggestions to find the problem.