Skip to main content

Windows 命令

cmdfull namedesc
gpeditGroup Policy Edit组策略编辑
servicesService Manager服务
controlControl Panel控制面板
eventvwrEvent Viewer事件查看器
systeminfo查看系统信息
# 服务管理
net startservice
net stopservice
net pauseservice
net continueservice
# 禁用服务
sc config "Name Of Service" start= disabled

快捷方式

PowerShell

# tail
Get-Content filenamehere -Wait -Tail 30

Auto run

  • 启动顺序
  • (Login Screen)
  • HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKLM\Software\Microsoft\Windows\CurrentVersion\Run
  • HKCU\Software\Microsoft\Windows\CurrentVersion\Run
  • StartUp Folder
    • shell:startup - 当前用户
      • C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    • shell:common startup - 公共
      • C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
  • HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
WriteRegStr HKLM “Software\Microsoft\Windows\CurrentVersion\Run” “Monitor” “X:\Monitor.exe”
WriteRegStr HKCU “Software\Microsoft\Windows\CurrentVersion\Run” “Monitor” “X:\Monitor.exe”

CreateShortCut “$SMSTARTUP\Monitor.lnk” “$INSTDIR\Monitor.exe”