windows开机自启动路径

427 阅读1分钟

gpedit  --- Computer Configuration -> Windows Settings -> Scripts(Startup/Shutdown)--Add     (此处的自启动无需输入开机密码

此处也可配置关机时调用的程序或命令。在任务管理器的用户为system,

默认的脚本路径为:

     C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup    

(附加说明:

这可能导致某些服务与客户端权限不一致。我本机上测试出现了

11:51:26 git fetch
11:51:26 Host key verification failed.
11:51:26 fatal: Could not read from remote repository.
11:51:26 
11:51:26 Please make sure you have the correct access rights
11:51:26 and the repository exists.

任务管理器--启动(放置在开机自启动目录下的脚本或可执行程序)    此处的自启动需要在输入开机密码后才执行

在任务管理器中的用户为个人登录用户名称“比如Tom"

    进入路径:  运行--输入 msconfig  ,    win10等新机器会提示打开任务管理器中的启动项。

    C:\Users\asus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

运行--输入: shell:Common Startup      (这个目录下放置的程序或脚本,不清楚在win10上会不会调用,应该会)   

   C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp