大网数据广告活动
Windows Server 管理

Run programs automatically

· 52CE 我爱测

Describes how to use group policies in Windows 2000 to configure a program to run automatically when a user signs in.

This article describes how to use group policies in Windows 2000 to configure a program to run automatically when a user signs in.

Applies to:   Windows 2000
Original KB number:   240791

Summary

You can apply a policy to an individual user or to a computer, and you can use any valid program (custom, third-party, or Windows 2000 programs such as Microsoft Internet Explorer). For example, use the appropriate method to configure Notepad.exe to run when a user signs in:

  • To configure Notepad to run when any user signs in to a specific computer:

    1. Edit the following group policy:
      Computer Configuration\Administrative Templates\System\Logon\Run These Programs at User Logon

    2. Type the full path name of the program. In this example, type the following path name:
      c:\%windir%\system32\notepad.exe

  • To configure Notepad to run when a specific user logs on (regardless of the computer he or she uses):

    1. Edit the following group policy:
      User Configuration\Administrative Templates\System\Run These Programs at User Logon

    2. Type the full path name of the program.

Note: If the program doesn't run, make sure the path is correct. The program doesn't run (and no error message is displayed) if the path isn't found.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。