I have a batch script that runs some programs at once. One of them requires admin access, so it's fine to manually give it. But now I am adding another admin program. I would not like to manually give admin access to two programs.
The apparent solution is to run the whole script as admin. Works.
But, I'd also like to not give admin access to the other programs. What would be the best way to run those in user-mode?
I found this question, but trying to run any command tells me that the command is invalid.
EDIT: I tried to run different commands with the at
command, but it did not work.
C:\Windows\system32>at notepad
Invalid command.
<then prints out help for the command>
(I am not sure if the exact text is "Invalid command" as my Windows is in Finnish, but that is the closest translation I can think of. If someone knows better it's "Komento ei kelpaa." in Finnish.)
EDIT 2: I also tried adding the directory and quotes to the command. No effect.
at
as suggested in the answer. And flagging it as a duplicate seems funny as I linked the exact same question and told it didn't work.[]
...