VarmintLP
VarmintLP

Reputation: 147

Task Scheduler .bat file run prompt

Currently I continue my work on my ICT (Information Collector Tool) which is just taking note of the Hardware Specs, Serial Number, Programs, etc. of a PC to monitor it's health in case RAM breaks or in case the users start installing Software we aren't aware of. Of course they normally don't have Admin rights to install anything but non the less I would prefer to have a list ready in case we see something suspicious going on.

So I finally got to a stage where I try to work out a way to run the file so the user doesn't have to do anything nor got to see that it is running. This is just to avoid "stupid" questions. Ideally I would run a hidden instance of this but the Task Scheduler doesn't seem to accept the hidden attribute of Windows 10s Task Scheduler.

This is the line the task is running: cmd.exe /c start /min /D "\\<IP>\<PATH>\ICT" ICT.bat

Anyway. The work around is to start the window minimized which is absolutely fine by me. My current issue is the following, the Task Scheduler successfully start the bat file, however it still prompts me to click on a Run button as shown on Picture 1 Picture 1

Does anyone know of a way to solve this issue? Do I have to add the PC or script somewhere in the Internet option > Security tab? If possible I would like to only use the Task scheduler & the bat file that should run. I saw about some Powershell or vbs scripts but I don't really want to turn this into an inception of scripts where Script A start Script B to Start Script C. And who can guarantee me that the middle man script also gets a prompt. ;)

Every help is very much appreciated.

Upvotes: 0

Views: 1153

Answers (1)

user15732390
user15732390

Reputation:

  1. Press Windows Key + S and enter Internet options. Select Internet Options from the list of results.
  2. When the Internet Properties window opens, go to the Security tab and click on the Custom Level button.
  3. A list of settings will appear. Locate "Launching applications and unsafe files" and select Enable. Now click OK to save changes.

Got it from here.

Disabling UAC prompt maybe helps too. Unfortunately, you will have to make all of these changes on each computer or make an .reg key. Good luck! Works on pretty much all Windows versions.

Hope this helps,
K.

Upvotes: 1

Related Questions