无忧启动论坛

标题: 求助挑战:较复杂的注册表转化成批处理如何完成 [打印本页]

作者: lcy163    时间: 2019-3-31 09:53
标题: 求助挑战:较复杂的注册表转化成批处理如何完成
本帖最后由 lcy163 于 2019-3-31 14:53 编辑

遇到一个难题

同事的电脑被管理员限制了,但是他需要导入一个注册表,cmd命令管理员没有限制,但是这个注册表比较奇葩(见附件),不知道如何转化成批处理,希望高手指教,谢谢!

reg.rar

2.43 KB, 下载次数: 34, 下载积分: 无忧币 -2


作者: 2012jiashanni    时间: 2019-3-31 11:26
批出来帮不了你  程序可以
作者: chishingchan    时间: 2019-3-31 11:38
贴出来吧!懒的下。
作者: slore    时间: 2019-3-31 11:46
你这个reg语法就是错误的。。。

reg.reg就导入不成功,你确定是注册表导入后导出的内容再转bat吧。
作者: nttwqz    时间: 2019-3-31 13:07
frg521 发表于 2019-3-31 12:58
...

兄台,何必这么认真。

洗个衣服,再回来看,没了。。。

去买了个衣服,回来看,没了。。。

吃了个饭,再午休一会,没了。。。


又有谁会时时刻刻守着论坛~
作者: lcy163    时间: 2019-3-31 14:51
本帖最后由 lcy163 于 2019-3-31 14:55 编辑
slore 发表于 2019-3-31 11:46
你这个reg语法就是错误的。。。

reg.reg就导入不成功,你确定是注册表导入后导出的内容再转bat吧。


忘了,这个是64位的注册表,我弄个32位的



Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Group\ISPI\FASTA]
"License"="<?xml version=\"1.0\"?>
<LicenseInfo xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns=\"http://tempuri.org/LicenseInfo.xsd\">
  <Name>Sc80 / Spider80</Name>
  <Email>Diag@Diag.com</Email>
  <Expiration>2100-01-01T00:00:00</Expiration>
  <Comment>Enter some information about you here; like department and what you are doing.</Comment>
  <ComputerName>BMW</ComputerName>
  <UserName>Sc80 / Spider80</UserName>
  <AvailableBrandTypes>*</AvailableBrandTypes>
  <AvailableLanguages>*</AvailableLanguages>
  <AvailableOperationModes>*</AvailableOperationModes>
  <DistributionPartnerNumber>*</DistributionPartnerNumber>
  <ComputerCharacteristics>+w==</ComputerCharacteristics>
<LicenseKey>dpGe31cPQkesSitre83KEPTDieqwmSFFO1aeEQPD845w3KDJICJoww94dhaWIE8EDssIWEKldsusueTD9k3kkkdiSSIJDIwsIDID5I3di/eIRKKW+2pJlBDHkDlXDRqrqE2Bk8cAiRMCLGIfGMdwnOcBzpNY/qacuhCU</LicenseKey>
  <LicenseServerURL xsi:nil=\"true\" />
  <LicenseType>offline</LicenseType>
  <SubLicenses PackageRule=\"PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxEZWFsZXJNYXN0ZXJEYXRhIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIGV4cGlyYXRpb25EYXRlPSIyMTAwLTAxLTAxVDAwOjAwOjAwWiIgdmVyaWZpY2F0aW9uQ29kZT0iZmU2NzM1N2UwY2NiNmM5MDdhY2I0YmM5ZGM3MzhhMjgiIGhhcmR3YXJlSWQ9IjFEQ0U4NkYwMkVBRTk1QTZCOTI5MzZENzU1OTg5M0QzIiB4bWxucz0iaHR0cDovL3d3dy5ibXcuY29tL2liYXNlL2JlYW5zL2RlYWxlcmRhdGEiPgogIDxkaXN0cmlidXRpb25QYXJ0bmVyIG5hbWU9IlNjODAgLyBTcGlkZXI4MCIgZGlzdHJpYnV0aW9uUGFydG5lck51bWJlcj0iMDAwMDAiIHhtbG5zPSIiPgogICAgPG91dGxldCBwcm90ZWN0aW9uVmVoaWNsZVNlcnZpY2U9InRydWUiIG5hbWU9IlBST0ZFU1NPUiIgb3V0bGV0TnVtYmVyPSIwIj4KICAgICAgPGFkZHJlc3Mgc3RyZWV0MT0iQk1XIFN0cmVldCIgc3RyZWV0Mj0iIiB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mU+CiAgICAgIDwvY29udHJhY3Q+CiAgICAgIDxjb250cmFjdCBpbnRlcm5hdGlvbmFsRGVhbGVyTnVtYmVyPSIwMDAwMCIgbmF0aW9uYWxEZWFsZXJOdW1iZXI9IjAwMDAwIiBzdGFydERhdGU9IjIwMTUtMDEtMDFUMDA6MDA6MDBaIiBlbmRDb250cmFjdERhdGU9IjIxMDAtMDEtMDFUMDA6MDA6MDBaIiBlbmRTZXJ2aWNlRGF0ZT0iMjEwMC0wMS0wMVQwMDowMDowMFoiPgogICAgICAgIDxicmFuZD5CTVdpPC9icmFuZD4KICAgICAgICA8cHJvZHVjdD5WZWhpY2xlPC9wcm9kdWN0PgogICAgICAgIDxidXNpbmVzc0xpbmU+U2VydmljZTwvYnVzaW5lc3NMaW5lPgogICAgICA8L2NvbnRyYWN0PgogICAgPC9vdXRsZXQ+CiAgPC9kaXN0cmlidXRpb25QYXJ0bmVyPgo8L0RlYWxlck1hc3RlckRhdGE+\">
    <PackageName>ForceDealerData</PackageName>
    <PackageExpire>0001-01-01T00:00:00</PackageExpire>
  </SubLicenses>
</LicenseInfo>"
作者: lcy163    时间: 2019-3-31 14:54
chishingchan 发表于 2019-3-31 11:38
贴出来吧!懒的下。

已经贴出来了
作者: lcy163    时间: 2019-3-31 14:56
2012jiashanni 发表于 2019-3-31 11:26
批出来帮不了你  程序可以

谢谢,有心了
作者: hdtq99    时间: 2019-3-31 17:10
这个注册表文件键值格式不对。
作者: vaf    时间: 2019-3-31 18:10
有现成的工具,白肚
作者: 9zhmke    时间: 2019-3-31 20:19
CMD不能调用regedit和reg吗? 允许有管理权限的CMD使用哪些资源?
作者: 令狐大虾    时间: 2019-3-31 23:58
PE下挂载实体机系统Software注册表配置文件导入即可。搞那么麻烦做啥呢
作者: 苏州本是    时间: 2019-4-1 08:48
用NSudo,以TrustedInstaller身份运行REG转成的BAT,启用全部特权。可以直接在正常系统中进行。
作者: 20121010168    时间: 2019-4-1 09:16
怎么看着是XML文件内容?
作者: lcy163    时间: 2019-4-1 23:38
谢谢大家的关注,看来真的没有什么很好的办法了
作者: RFRdnyH4    时间: 2019-11-19 01:56
直接以管理员权限启动CMD,然后输入 reg import xxxx.reg就可以导入了,不用双击.reg文件
作者: lhc12399    时间: 2019-11-26 14:35
谢谢分享
作者: Hysanohsp    时间: 2019-11-27 19:27
试试五大的工具http://blog.sina.com.cn/s/blog_6fd804fe0102wq8v.html




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3