📎 AI Summary:
The original poster is seeking a way to run their batch script on a schedule without the command prompt window appearing, effectively running it in the background. A respondent suggests configuring Task Scheduler with the appropriate settings, such as ensuring the task has the necessary permissions and possibly adjusting security policies, to run the script silently. Overall, the discussion focuses on executing scheduled scripts discreetly, with practical suggestions on permissions and task setup.

LOL

Member
Joined
Jun 28, 2021
Messages
13
Thread Author #1
I have a server and it don't have backup so I need to run my custom batch script to get files from sftp then archive it. But I need it to run like a schedules, but everytime the schedules start the batch files. I allway open up the command prompt window. Is anyway to hide that window? Like runing in background I thing.
 

Solution
You'll want to make sure it the task has these two items checked.
Also you'll need either an account that is a local admin or has the 'Log on as a batch job'
with in secpol.msc > 'Local Policies' > 'User Rights Assignment'
An image from 'Is there any way to run a batch script without showing up the command prompt window?'. Task scheduler configured to run a hidden batch task whether user is logged on or not.

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
You'll want to make sure it the task has these two items checked.
Also you'll need either an account that is a local admin or has the 'Log on as a batch job'
with in secpol.msc > 'Local Policies' > 'User Rights Assignment'
An image from 'Is there any way to run a batch script without showing up the command prompt window?'. Task scheduler configured to run a hidden batch task whether user is logged on or not.
 

Last edited by a moderator:
Solution