查看: 4333|回复: 9
收起左侧

[系统] 如何开机后自动写入注册表

[复制链接]
anycall9696
头像被屏蔽
发表于 2016-3-14 11:09:41 | 显示全部楼层 |阅读模式
我有一个REG注册表,是关于电池阈值的,自从用了WIN10以后,兼容性不好,经常导致阈值失效,这时候就要手动导入注册表回复
很烦啊,我想用计划任务或者是别的什么做个开机启动项,开机时或者每天定时导入注册表
现在的问题是,直接运行reg文件是不行的,因为有一个确认的过程
我该如何操作,怎么写
如图,这样是不行的。。。。





是不是我思路本身就错了?不应直接运行REG,而是应该运行regedit.exe然后参数指向reg?或者把REG变成CMD文件bat文件???
如何操作,大神指点下

文件在下面,,求神仙指点下

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\1.00.000]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data]
"FirstInstID"=dword:00005f3d
"PowerPlanToBeLocked"=dword:00000000
"SmartSleepIsCapable"=dword:00000000
"ShowBatteryGauge"=dword:00000001
"FirmwareUpdateFWVersion"="0004-3fa5-0162-0110"
"AutomaticMaintenance"=dword:00010020
"BatteryNumberInMaintenanceScreen"=dword:00000001
"FirmwareUpdateAutoCheck"=dword:00000000
"ApplyToAllPlanForEventsIsChecked"=dword:00000000
"ApplyToAllPlanForAlarmsIsChecked"=dword:00000000
"MaximizeBatteryAtLow"=dword:00000000
"FnF3"=dword:00000000
"MenuTextSize"=dword:00000000
"BatInfoAccessType"=dword:00000002
"ShowRemainingTimeGauge"=dword:00000001
"ChargeStartControl"=dword:00000001
"ChargeStopControl"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data\1ZHFN08K2R7]
"Automatic"=dword:00000002
"FirstInstID"=dword:00005f3d
"ChargeStopControl"=dword:00000001
"ChargeStartControl"=dword:00000001
"ChargeStartPercentage"=dword:0000003b
"ChargeStopPercentage"=dword:00000063

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data\AirplaneMode]
"AutoDetection"=dword:00000000
"DisableScheme"="B2E1F69E-23A6-42C8-A1BD-BC9E6AF5CAE0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data\ExtremeBatteryLife]
"IsCapable"=dword:00000001
"FirstInstID"=dword:00005f3d
"WasRebooted"=dword:00000000
"MinimizeDisplayBrightnessLevel"=dword:0000000c
"NeedBalloonMessage"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data\Gadget]
"SliderPos"=dword:00000000
"FirstInstID"=dword:00005f3d
"BasicMode"=dword:00000000
"Wattage"="0.01W"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data\ISSC]
"EnableISSC"=dword:00000001
"FirstInstID"=dword:00005f3d

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\ConfKeys\Data\Log]
"MobileInkStageBattery1"=dword:00000000
"FirstInstID"=dword:00005f3d

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data]
"MaximizeBatteryAtLow"=dword:00000000
"ExpandSchemePage"=dword:00000000
"ExpandBatteryPage"=dword:00000000
"ChargeStartControl"=dword:00000001
"ChargeStopControl"=dword:00000001
"ChargeStartPercentage"=dword:0000003b
"ChargeStopPercentage"=dword:00000063
"AutomaticMaintenance"=dword:00010020
"MenuTextSize"=dword:00000000
"ShowBatteryGauge"=dword:00000001
"ShowRemainingTimeGauge"=dword:00000001
"MaxLenOfSchemeName"=dword:00000020
"MaxLenOfSchemeHint"=dword:000000ff
"MaxNumOfScheme"=dword:00000032
"BRTNessGragualReduction"=dword:00000000
"BRTNessGradualReductionTimer"=dword:0000001e
"ACWattPollingTimerGauge"=dword:0000001e
"ACWattPollingTimerWin"=dword:00000002
"BattDataPollingTimerGauge"=dword:0000003c
"BattDataPollingTimerWin"=dword:0000000a
"TurboMeterPollingTimer"=dword:000003e8
"LoggedDataWritingTimer"=dword:00000708
"BalloonStayTime"=dword:00000009
"RequiredMinimumLoggingTime"=dword:00000038
"BattMessageURL"="http://www.lenovo.com/alldaycomputing"
"BattMessageURL2"="http://www.lenovo.com/alldaycomputing"
"BattMessageURL3"="http://www.lenovo.com/alldaycomputing"
"BattMessageRemainingMin"=dword:0000005a
"VideoPlaybackAlways"=dword:00000000
"VideoPlaybackChange"=dword:00000001
"AutomaticOddDisable"=dword:00000000
"OddDisableDuration"=dword:0000ea60
"SwitchGPUByDocking"=dword:00000002
"DbcTimeoutForPageOut"=dword:00000064
"EnableInstantInternet"=dword:00000000
"PeakshiftCapable"=dword:00000000
"EnergyWallpaperToColor"=dword:00ffffff
"DbcShutDown"=dword:00000000
"DbcLogOff"=dword:00000000
"DbcSwitchUser"=dword:00000000
"DbcScreenLock"=dword:00000000
"DbcScreenSaver"=dword:00000000
"DbcBatteryStretch"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\ALS]
"AlsStatus"=dword:00000001
"OverallBrightness"=dword:00000000
"Sensitivity"=dword:00000003
"MaxPercent"=dword:00000064
"MinPercent"=dword:00000000
"AdjustSpeed"=dword:0000012c
"ThinkLight"=dword:00000001
"HotaruOnValue"=dword:00000014
"TemporaryDisableOSD"=dword:00000000
"PrivacyFilterAttached"=dword:00000000
"SensorResolution"=dword:00000008
"DaylightEfficiency"=dword:0000003c
"FilterTransparency"=dword:00000050
"DefaultLuxForMaxBrightness"=dword:0000012c
"OverallBrightnessMax"=dword:00000064
"OverallBrightnessMin"=dword:ffffff9c
"SensitivityMax"=dword:00000005
"SensitivityMin"=dword:00000001
"ThinkLightMax"=dword:00000028
"ThinkLightMin"=dword:00000000
"AdjustmentSpeedMax"=dword:00000064
"AdjustmentSpeedMin"=dword:000001f4
"ThinkLightDeviation"=dword:00000005
"BrightnessPollingTimer"=dword:00000001
"LuxDataPollingTimer"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\DualModeBattery]
"Automatic"=dword:00000003
"PercentForSwitchingLifespan"=dword:0000003c
"PercentForSwitchingRuntime"=dword:0000005a
"PercentForBatteryHealthExit"=dword:0000000a
"CountForSwitchingLifespan"=dword:00000000
"CountForSwitchingRuntime"=dword:00000002
"CountForBatteryHealthExit"=dword:00000001
"SearchRangOfLog"=dword:0000000e
"SearchRangOfLogForNonReplaceable"=dword:00000007
"SearchRangOfLogForBatteryHealthEntry"=dword:0000000e
"SearchRangOfLogForBatteryHealthExit"=dword:0000000e
"MinDischargePercent"=dword:00000003
"BatteryHealth"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\ExtremeBatteryLife]
"FirstUse"=dword:00000001
"EnableTempSettings"=dword:00000000
"MinimizeDisplayBrightness"=dword:00000001
"TurnoffDisplay"=dword:00000001
"MinimizeRefreshRate"=dword:00000001
"ChangeColorDepth"=dword:00000001
"HideSidebar"=dword:00000001
"DisablePerformanceGfx"=dword:00000001
"EnergyWallpaper"=dword:00000001
"DisableDiscreteGpu"=dword:00000000
"DisableWirelessLanRadios"=dword:00000000
"DisableWirelessWanRadios"=dword:00000000
"DisableBluetooth"=dword:00000000
"UWBRadios"=dword:00000000
"DisableWiMaxRadios"=dword:00000000
"DisableCDRW"=dword:00000001
"MuteAudio"=dword:00000001
"SuspendBackgroundService"=dword:00000001
"ChangeCPUSpeed"=dword:00000001
"KeyboardBacklight"=dword:00000001
"ShowBalloonMessage"=dword:00000001
"NeedBalloonMessage"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\Gadget]
"BasicMode"=dword:00000001
"Percentage"="2"
"RemainingTime"="-1"
"SliderPos"=dword:00000000
"Wattage"="-1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\InstantOn]
"LowPowerTimer"=dword:0000003c
"LowPowerTimerMax"=dword:00000078
"LowPowerTimerMin"=dword:0000000a
"SuspendTimer"=dword:0000001e
"ResumeTimer"=dword:00000005
"LowPowerAvg"=dword:0000012c
"LockTimer"=dword:00000258
"LowBattery"=dword:0000000b
"CpuLimitRate"=dword:00000001
"SwitchMethod"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\ISSC]
"EnableISSC"=dword:00000001
"S3TimerForIFFS"=dword:000000b4
"BitLockerEnabled"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\RapidResume]
"EnableRapidResume"=dword:00000000
"MaxCarryTime"=dword:00000258
"PostCarryactionAC"=dword:00000000
"PostCarryactionDC"=dword:00000000
"LockWrkStn"=dword:00000001
"EnabPlaySound"=dword:00000000
"RapidResumeEnabledBefore"=dword:00000000
"IsOrigLidCloseDoNothing"=dword:00000000
"DisabledAPS"=dword:00000000
"FoundAPSDisabled"=dword:00000000
"StandbyTime_AC"=dword:00000000
"StandbyTime_DC"=dword:00000000
"Anywhere"=dword:00000001
"SoundFiles"="C:\\Windows\\Media\\chimes.wav"
"EnableNeverOff"=dword:00000000
"AllowNeverOff"=dword:00000001
"FirstUse"=dword:00000001
"SuppressLockWhenMoving"=dword:00000000
"DozeUsageBalloonCnt"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Data\RapidResume\Doze]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\InstallInfo]
"FirstInstID"=dword:00005f3d
"PWRMGR"=dword:00000001
"PWRMGRVersion"="6.68.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Path]
@="C:\\ThinkPad"
"OutputPath"="C:\\ProgramData\\Lenovo\\Power Manager"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes\47F725A3-B670-410F-8337-40939131979B]
"SchemeID"=dword:0000000a
@="TPPWRMGR"
"ProhibitModification"=dword:00000005
"SectionNo"=dword:00000002
"CPU_SPEED_AC"="2"
"CPU_SPEED_DC"="2"
"CPU_TURBO_AC"="1"
"CPU_TURBO_DC"="1"
"DISP_BRTNESS_AC"="15"
"DISP_BRTNESS_DC"="6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes\4DCFA278-FAC7-4236-9695-DF74D7D07629]
"SchemeID"=dword:0000000b
@="TPPWRMGR"
"ProhibitModification"=dword:00000000
"SectionNo"=dword:ffffffff
"DISP_BRTNESS_AC"="0"
"DISP_BRTNESS_DC"="0"
"CPU_SPEED_AC"="4"
"CPU_SPEED_DC"="4"
"OPTI_FANCONTROL_AC"="1"
"OPTI_FANCONTROL_DC"="2"
"C4_AC"="1"
"C4_DC"="1"
"CPU_TURBO_AC"="0"
"CPU_TURBO_DC"="0"
"BRTNESS_WHEN_IDLE_AC"="0"
"BRTNESS_WHEN_IDLE_DC"="0"
"BRTNESS_IDLE_TIMER_AC"="0"
"BRTNESS_IDLE_TIMER_DC"="0"
"RRATE_WHEN_IDLE_AC"="2"
"RRATE_WHEN_IDLE_DC"="2"
"RRATE_IDLE_TIMER_AC"="0"
"RRATE_IDLE_TIMER_DC"="900"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes\525D0A58-30A3-47AA-84F0-17DB932EFF0A]
"SchemeID"=dword:0000000e
@="TPPWRMGR"
"ProhibitModification"=dword:00000000
"SectionNo"=dword:00000000
"DISP_BRTNESS_AC"="15"
"DISP_BRTNESS_DC"="10"
"CPU_SPEED_AC"="1"
"CPU_SPEED_DC"="2"
"OPTI_FANCONTROL_AC"="1"
"OPTI_FANCONTROL_DC"="2"
"C4_AC"="1"
"C4_DC"="1"
"CPU_TURBO_AC"="1"
"CPU_TURBO_DC"="0"
"BRTNESS_WHEN_IDLE_AC"="15"
"BRTNESS_WHEN_IDLE_DC"="1"
"BRTNESS_IDLE_TIMER_AC"="0"
"BRTNESS_IDLE_TIMER_DC"="0"
"RRATE_WHEN_IDLE_AC"="2"
"RRATE_WHEN_IDLE_DC"="2"
"RRATE_IDLE_TIMER_AC"="0"
"RRATE_IDLE_TIMER_DC"="900"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes\B2E1F69E-23A6-42C8-A1BD-BC9E6AF5CAE0]
"SchemeID"=dword:0000000d
@="TPPWRMGR"
"ProhibitModification"=dword:00000000
"SectionNo"=dword:ffffffff
"DISP_BRTNESS_AC"="15"
"DISP_BRTNESS_DC"="10"
"CPU_SPEED_AC"="2"
"CPU_SPEED_DC"="2"
"OPTI_FANCONTROL_AC"="1"
"OPTI_FANCONTROL_DC"="2"
"C4_AC"="1"
"C4_DC"="1"
"CPU_TURBO_AC"="1"
"CPU_TURBO_DC"="0"
"BRTNESS_WHEN_IDLE_AC"="9"
"BRTNESS_WHEN_IDLE_DC"="1"
"BRTNESS_IDLE_TIMER_AC"="0"
"BRTNESS_IDLE_TIMER_DC"="0"
"RRATE_WHEN_IDLE_AC"="2"
"RRATE_WHEN_IDLE_DC"="2"
"RRATE_IDLE_TIMER_AC"="0"
"RRATE_IDLE_TIMER_DC"="900"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes\CC53F648-3596-402E-BD76-34723278FAE4]
"SchemeID"=dword:0000000c
@="TPPWRMGR"
"ProhibitModification"=dword:00000000
"SectionNo"=dword:ffffffff
"DISP_BRTNESS_AC"="8"
"DISP_BRTNESS_DC"="10"
"CPU_SPEED_AC"="2"
"CPU_SPEED_DC"="2"
"OPTI_FANCONTROL_AC"="1"
"OPTI_FANCONTROL_DC"="2"
"C4_AC"="1"
"C4_DC"="1"
"CPU_TURBO_AC"="0"
"CPU_TURBO_DC"="0"
"BRTNESS_WHEN_IDLE_AC"="14"
"BRTNESS_WHEN_IDLE_DC"="1"
"BRTNESS_IDLE_TIMER_AC"="0"
"BRTNESS_IDLE_TIMER_DC"="0"
"RRATE_WHEN_IDLE_AC"="2"
"RRATE_WHEN_IDLE_DC"="2"
"RRATE_IDLE_TIMER_AC"="0"
"RRATE_IDLE_TIMER_DC"="900"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Settings]
"WebAccess"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Setup]
"ChangeFontCacheService"=dword:00000001
"BIOSBuildID"="83"
"SystemBrandID"=dword:00000012
"PhisicalDrive0IsSSD"=dword:00000001


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
峪飞鹰
发表于 2016-3-14 11:16:50 | 显示全部楼层
可参考 Reg 命令的说明

  1. REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]
  2.         [/reg:32 | /reg:64]

  3.   KeyName  [\\Machine\]FullKey
  4.            Machine  远程机器名 - 忽略默认到当前机器。远程机器上
  5.                     只有 HKLM 和 HKU 可用。
  6.            FullKey  ROOTKEY\SubKey
  7.            ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  8.            SubKey   所选 ROOTKEY 下注册表项的完整名称。

  9.   /v       所选项之下要添加的值名称。

  10.   /ve      为注册表项添加空白值名称(默认)。

  11.   /t       RegKey 数据类型
  12.            [ REG_SZ    | REG_MULTI_SZ | REG_EXPAND_SZ |
  13.              REG_DWORD | REG_QWORD    | REG_BINARY    | REG_NONE ]
  14.            如果忽略,则采用 REG_SZ。

  15.   /s       指定一个在 REG_MULTI_SZ 数据字符串中用作分隔符的字符
  16.            如果忽略,则将 "\0" 用作分隔符。

  17.   /d       要分配给添加的注册表 ValueName 的数据。

  18.   /f       不用提示就强行覆盖现有注册表项。

  19. /reg:32  指定应该使用 32 位注册表视图访问的注册表项。

  20. /reg:64  指定应该使用 64 位注册表视图访问的注册表项。

  21. 例如:

  22.   REG ADD \\ABC\HKLM\Software\MyCo
  23.     添加远程机器 ABC 上的一个注册表项 HKLM\Software\MyCo

  24.   REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead
  25.     添加一个值(名称: Data,类型: REG_BINARY,数据: fe340ead)

  26.   REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail
  27.     添加一个值(名称: MRU,类型: REG_MULTI_SZ,数据: fax\0mail\0\0)

  28.   REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d ^%systemroot^%
  29.     添加一个值(名称: Path,类型: REG_EXPAND_SZ,数据: %systemroot%)
  30.     注意: 在扩充字符串中使用插入符号 ( ^ )
复制代码
anycall9696
头像被屏蔽
 楼主| 发表于 2016-3-14 11:22:59 | 显示全部楼层
峪飞鹰 发表于 2016-3-14 11:16
可参考 Reg 命令的说明

你能直接的说结果么,我现在是不是应该加上 /f
anycall9696
头像被屏蔽
 楼主| 发表于 2016-3-14 11:29:07 | 显示全部楼层
峪飞鹰 发表于 2016-3-14 11:16
可参考 Reg 命令的说明

继续求大神,来个明白人,楼上说的太高深,等于没说

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
峪飞鹰
发表于 2016-3-14 11:35:22 | 显示全部楼层
anycall9696 发表于 2016-3-14 11:29
继续求大神,来个明白人,楼上说的太高深,等于没说

你那么多内容要我帮你翻译太累了啊。

直接扔给你一个工具吧,这个是把.reg文件中的内容,转换成使用reg命令行工具执行的bat文件的工具。你转换成bat然后加计划任务吧。

http://www.sordum.org/8478/reg-converter-v1-0/
anycall9696
头像被屏蔽
 楼主| 发表于 2016-3-14 11:40:09 | 显示全部楼层
峪飞鹰 发表于 2016-3-14 11:35
你那么多内容要我帮你翻译太累了啊。

直接扔给你一个工具吧,这个是把.reg文件中的内容,转换成使用re ...

感谢,我去研究下
jasmineamber
发表于 2016-3-14 11:43:47 | 显示全部楼层
本帖最后由 jasmineamber 于 2016-3-14 11:45 编辑

[mw_shl_code=shell,true]regedit /s "E:\Desktop\document\Quick\128.reg"[/mw_shl_code]
anycall9696
头像被屏蔽
 楼主| 发表于 2016-3-14 11:46:55 | 显示全部楼层
峪飞鹰 发表于 2016-3-14 11:35
你那么多内容要我帮你翻译太累了啊。

直接扔给你一个工具吧,这个是把.reg文件中的内容,转换成使用re ...

再次感谢,貌似可以,扔到计划任务中以SYSTEM账户运行,没有任何痕迹,谢谢
nttwqz
发表于 2016-3-14 15:50:41 来自手机 | 显示全部楼层
regedit /S dgiydbh.reg
jasake
发表于 2016-3-14 22:21:44 | 显示全部楼层
REG import xxx.reg
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-1-16 08:18 , Processed in 0.135615 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表