🐧운영체제/Windows

μœˆλ„μš° - λ ˆμ§€μŠ€νŠΈλ¦¬ ν”„λ‘œκ·Έλž¨ μžλ™ μ‹€ν–‰ 등둝(\CurrentVersion\Run)

Janger 2023. 5. 17. 23:17
728x90

 

 

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

 

Run: 맀번 컴퓨터가 λΆ€νŒ…λ  λ•Œλ§ˆλ‹€ μ‹€ν–‰

RunOnce: 컴퓨터가 λΆ€νŒ…λ  λ•Œ ν•œλ²ˆλ§Œ μ‹€ν–‰

 

 

cmd.exe
 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "auto run" /t REG_SZ /d "C:\Temp\program.exe" /f

 

 

좜처: 

https://learn.microsoft.com/ko-kr/windows/win32/setupapi/run-and-runonce-registry-keys

 

RunOnce λ ˆμ§€μŠ€νŠΈλ¦¬ ν‚€ μ‹€ν–‰ 및 μ‹€ν–‰ - Win32 apps

μ‹€ν–‰ λ˜λŠ” RunOnce λ ˆμ§€μŠ€νŠΈλ¦¬ ν‚€λ₯Ό μ‚¬μš©ν•˜μ—¬ μ‚¬μš©μžκ°€ λ‘œκ·Έμ˜¨ν•  λ•Œ ν”„λ‘œκ·Έλž¨μ„ μ‹€ν–‰ν•©λ‹ˆλ‹€.

learn.microsoft.com

 

728x90