Как добавить скрипт в автозагрузку windows 10

On previous versions of Windows I have used the below technique to run a batch file on Windows startup.

  1. Create a shortcut to the batch file.
  2. Once the shortcut is created, right-click the shortcut file and select Cut.
  3. Click Start, then Programs or All Programs. Find the Startup folder and right-click that folder, then select Open.
  4. Once the Startup folder is opened, click Edit in the menu bar, then Paste to paste the shortcut file into the Startup folder. If you do not see the menu bar, press the Alt key to make the menu bar visible.
    Any shortcuts in the Startup folder will automatically run each time the user logs in to Windows.

I have been unsuccessful in finding how to do something similar on Windows 10.

Any ideas?

asked Aug 10, 2015 at 20:20

baynezy's user avatar

baynezybaynezy

1,3712 gold badges10 silver badges9 bronze badges

2

The startup folder is still there and functions as normal.

To access it, press Windows+R, then type shell:startup.

You should be able to do what you were previously doing in Windows 7 from there.

answered Aug 10, 2015 at 20:43

7

You can use scheduled tasks and set it to run at startup.

Go to ManageScheduled TasksCreate a Basic Task.

Once at the dialog box, set a name, click Next and select at startup, Next again and select the program you want to run and next to finish. Done!

Peter Mortensen's user avatar

answered Aug 10, 2015 at 20:59

sarakusta's user avatar

sarakustasarakusta

5133 silver badges4 bronze badges

1

To add to user314352’s answer:

The startup folder is still there and functions as normal.

To access it, press Windows+R, then type shell:startup.

You should be able to do what you were previously doing in Windows 7 from there.

You can also type shell:common startup to access the startup folder for all users.

Kim's user avatar

answered Dec 26, 2020 at 11:05

Azeezah M's user avatar

Azeezah MAzeezah M

1011 silver badge2 bronze badges

If you don’t have access to Windows+X functionality, you can navigate manually to the two startup folders:

  • User: C:\Users\USER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • All users: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

Here’s a useful batch file to open either or both of these folders:

rem Load the current user Start folder
%SystemRoot%\explorer.exe "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup"

rem Load the "All Users" Start folder
%SystemRoot%\explorer.exe "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp"

Note: Above applies to Windows 8.1 and Windows 10 (and maybe earlier versions).

answered Jan 20, 2020 at 13:00

AlainD's user avatar

AlainDAlainD

4,48715 gold badges50 silver badges96 bronze badges

3

I have an MSI motherboard that is not playing nice with my beloved Gateway Anykey keyboard. Num Lock won’t turn off at boot.

I added a «NumLock Off» utility to the shell:startup folder. No help. I added it to Scheduled Tasks and that worked. BTW, I couldn’t schedule a shortcut to the utility. I could only schedule a batch file with the numlock.exe file and the «off» parameter on the command line.

Peter Mortensen's user avatar

answered Nov 20, 2016 at 3:40

Al Pomey's user avatar

1

Alternative through Group Policy

gpedit: Local Computer Policy > Computer Configuration > Windows Settings > Script (Startup/Shutdown)

answered Jun 2, 2021 at 9:04

user.dz's user avatar

user.dzuser.dz

6687 silver badges19 bronze badges

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Первый способ
Для того чтобы добавить скрипт в автозагрузку в Windows 10 необходимо:
1) Сделать ярлык к файлу скрипту
2) В проводнике прописать shell:startup и добавить в этой папке ярлык нашего скрипта на автозапуск.
3) Смотрим в автозапуске, есть ли наш скрипт там или нет.
4) Перезагружаемся и проверяем работу.

Второй способ
Если для запуска скрипта требуется права администратора, то необходимо сделать автозапуск через планировщик задач:
1) через поиск открывает планировщик задач
2) создаем новую простую задачу
1
3) называем задачу и в траггере ставим «При входе в Windows»:
2
4) отмечаем, что запуск программы:
3
5) выбираем программу:
4
6) завершаем создание задачи
7) правой кнопкой мыши кликаем по задаче и выбираем свойства. Во вкладке «Общее» ставим галочку «Выполнить с наивысшими правами» и применяем изменения
5
8) перезагружаем компьютер и проверяем работу скрипта.

Категории: Windows

Метки: windows

Содержание

  • Способ 1: Папка автозапуска
  • Способ 2: «Редактор реестра»
  • Способ 3: Планировщик заданий
  • Способ 4: Локальные групповые политики
  • Вопросы и ответы

Как добавить батник в автозагрузку Windows 10

Способ 1: Папка автозапуска

Методы добавления в автозагрузку скрипта BAT ничем не отличаются от методов добавления в автозагрузку ярлыков и других файлов. Самым простым и очевидным является копирование файла батника в папку автозапуска.

  1. Откройте папку автозапуска, для чего выполните в вызванном клавишами Win + R окошке команду shell:Startup.
  2. Как добавить батник в автозагрузку Windows 10-1

  3. Скопируйте в открывшийся каталог файл BAT.
  4. Как добавить батник в автозагрузку Windows 10-2

Это добавит командный файл в автозагрузку текущего пользователя. Если необходимо, чтобы скрипт выполнялся при входе в систему всех пользователей, скопируйте его в системную папку C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup.

Способ 2: «Редактор реестра»

Добавить батник в автозагрузку можно также путем применения несложного твика реестра, прописав во встроенном «Редакторе реестра» путь к командному файлу.

  1. Запустите «Редактор реестра» командой regedit, выполненной в диалоговом окошке Win + R.
  2. Как добавить батник в автозагрузку Windows 10-3

  3. Разверните ветку HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run или HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, если хотите, чтобы добавленный в автозапуск батник запускался для всех пользователей.
  4. Создайте в правой колонке новый строковый параметр с именем файла BAT или произвольным названием.
  5. Как добавить батник в автозагрузку Windows 10-4

  6. Откройте двойным кликом по созданному параметру окошко редактирования его значения и вставьте в поле «Значение» полный путь к BAT-файлу. Если в пути присутствуют пробелы, заключите путь в двойные прямые кавычки.
  7. Как добавить батник в автозагрузку Windows 10-5

Скопировать полный путь к файлу можно в его «Свойствах» либо из его контекстного меню, вызванного с зажатой клавишей Shift.

Способ 3: Планировщик заданий

Следующий метод добавления командного файла в автозагрузку Windows 10 заключается в создании задачи в системном «Планировщике заданий».

  1. Запустите «Планировщик заданий» командой taskschd.msc, выполненной в диалоговом окошке Win + R.
  2. Как добавить батник в автозагрузку Windows 10-6

  3. Нажмите в правой колонке по «Создать задачу».
  4. Как добавить батник в автозагрузку Windows 10-7

  5. В окне мастера создания задачи дайте новому заданию произвольное имя, активируйте, если нужно, запуск скрипта с наивысшими правами.
  6. Как добавить батник в автозагрузку Windows 10-8

  7. Перейдите на вкладку «Триггеры» и нажмите кнопку «Создать».
  8. Как добавить батник в автозагрузку Windows 10-9

  9. В выпадающем списке «Начать задачу» выберите «При запуске» или «При входе в систему». Нажмите «OK».
  10. Как добавить батник в автозагрузку Windows 10-10

  11. Перейдите на вкладку «Действия» и нажмите «Создать».
  12. Как добавить батник в автозагрузку Windows 10-11

  13. Нажав кнопку «Обзор», выберите добавляемый в автозапуск файл BAT. Остальные настройки можно не менять, убедитесь только, что в качестве действия выбран «Запуск программы» и последовательно сохраните настройки.
  14. Как добавить батник в автозагрузку Windows 10-12

Созданная задача появится в разделе «Библиотека планировщика заданий». При желании ее можно будет испытать, выделив мышкой и нажав ссылку «Выполнить» в правой колонке «Планировщика заданий».
Как добавить батник в автозагрузку Windows 10-13

Способ 4: Локальные групповые политики

Этот способ добавления батника в автозагрузку подходит только для Windows 10 редакции Pro и выше.

  1. Запустите «Редактор локальных групповых политик» командой gpedit.msc через диалоговое окошко «Выполнить» (Win + R).
  2. Как добавить батник в автозагрузку Windows 10-14

  3. Разверните ветку «Конфигурация пользователя»«Административные шаблоны»«Система»«Вход в систему» и откройте двойным кликом настройки политики «Выполнять эти программы при входе в систему».
  4. Как добавить батник в автозагрузку Windows 10-15

  5. Активируйте радиокнопку «Включено» и нажмите кнопку «Показать».
  6. Как добавить батник в автозагрузку Windows 10-16

  7. В поле «Значение» открывшегося диалогового окошка вставьте полный путь к файлу-батнику, нажмите «OK» и сохраните настройки.
  8. Как добавить батник в автозагрузку Windows 10-17

Если необходимо, чтобы батник запускался при входе в систему всех пользователей, нужно изменить одноименную политику в разделе «Конфигурация компьютера», а не «Конфигурация пользователя».

Еще статьи по данной теме:

Помогла ли Вам статья?

On previous versions of Windows I have used the below technique to run a batch file on Windows startup.

  1. Create a shortcut to the batch file.
  2. Once the shortcut is created, right-click the shortcut file and select Cut.
  3. Click Start, then Programs or All Programs. Find the Startup folder and right-click that folder, then select Open.
  4. Once the Startup folder is opened, click Edit in the menu bar, then Paste to paste the shortcut file into the Startup folder. If you do not see the menu bar, press the Alt key to make the menu bar visible.
    Any shortcuts in the Startup folder will automatically run each time the user logs in to Windows.

I have been unsuccessful in finding how to do something similar on Windows 10.

Any ideas?

asked Aug 10, 2015 at 20:20

baynezy's user avatar

baynezybaynezy

1,3712 gold badges10 silver badges9 bronze badges

2

The startup folder is still there and functions as normal.

To access it, press Windows+R, then type shell:startup.

You should be able to do what you were previously doing in Windows 7 from there.

answered Aug 10, 2015 at 20:43

7

You can use scheduled tasks and set it to run at startup.

Go to ManageScheduled TasksCreate a Basic Task.

Once at the dialog box, set a name, click Next and select at startup, Next again and select the program you want to run and next to finish. Done!

Peter Mortensen's user avatar

answered Aug 10, 2015 at 20:59

sarakusta's user avatar

sarakustasarakusta

5133 silver badges4 bronze badges

1

To add to user314352’s answer:

The startup folder is still there and functions as normal.

To access it, press Windows+R, then type shell:startup.

You should be able to do what you were previously doing in Windows 7 from there.

You can also type shell:common startup to access the startup folder for all users.

Kim's user avatar

answered Dec 26, 2020 at 11:05

Azeezah M's user avatar

Azeezah MAzeezah M

1011 silver badge2 bronze badges

If you don’t have access to Windows+X functionality, you can navigate manually to the two startup folders:

  • User: C:\Users\USER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • All users: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

Here’s a useful batch file to open either or both of these folders:

rem Load the current user Start folder
%SystemRoot%\explorer.exe "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup"

rem Load the "All Users" Start folder
%SystemRoot%\explorer.exe "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp"

Note: Above applies to Windows 8.1 and Windows 10 (and maybe earlier versions).

answered Jan 20, 2020 at 13:00

AlainD's user avatar

AlainDAlainD

4,48715 gold badges50 silver badges96 bronze badges

3

I have an MSI motherboard that is not playing nice with my beloved Gateway Anykey keyboard. Num Lock won’t turn off at boot.

I added a «NumLock Off» utility to the shell:startup folder. No help. I added it to Scheduled Tasks and that worked. BTW, I couldn’t schedule a shortcut to the utility. I could only schedule a batch file with the numlock.exe file and the «off» parameter on the command line.

Peter Mortensen's user avatar

answered Nov 20, 2016 at 3:40

Al Pomey's user avatar

1

Alternative through Group Policy

gpedit: Local Computer Policy > Computer Configuration > Windows Settings > Script (Startup/Shutdown)

answered Jun 2, 2021 at 9:04

user.dz's user avatar

user.dzuser.dz

6687 silver badges19 bronze badges

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

  1. Select the Start  button and scroll to find the app you want to run at startup.

  2. Right-click the app, select More, and then select Open file location. This opens the location where the shortcut to the app is saved. If there isn’t an option for Open file location, it means the app can’t run at startup.

  3. With the file location open, press the Windows logo key  + R, type shell:startup, then select OK. This opens the Startup folder.

  4. Copy and paste the shortcut to the app from the file location to the Startup folder.

See how to change which apps run automatically at startup

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

  • Как добавить скринсейвер на windows 10
  • Как добавить секунды в часы на панели задач windows 10
  • Как добавить свои значки для папок windows 10
  • Как добавить секунды в часы в трее windows 11
  • Как добавить свое приложение в автозагрузку windows 11