需要帮助通过批处理文件添加注册表项 [英] Need help adding registry key via batch file
本文介绍了需要帮助通过批处理文件添加注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过cmd添加以下注册表项.我无法让其他用户使用regedit.exe /s "Location\Project.reg"
添加此注册表项.
I am trying to add the following registry key through cmd. I am not able to get other users to be able to add this registry key using regedit.exe /s "Location\Project.reg"
.
[HKEY_CURRENT_USER \ Software \ Autodesk \ Fabrication 2014 \ Configuration \ 1011-Shady-Grove] "Path" ="C:/Autodesk/Profiles/05MA/1011-Shady-Grove"
[HKEY_CURRENT_USER\Software\Autodesk\Fabrication 2014\Configuration\1011-Shady-Grove] "Path"="C:/Autodesk/Profiles/05MA/1011-Shady-Grove"
推荐答案
您使用了错误的工具. Regedit是一个GUI工具.是的,您可以使用/s开关,但是从根本上来说,这是错误的工具.另外,它是使用UAC清单中的highestAvailable
选项构建的.
You are using the wrong tool. Regedit is a GUI tool. Yes you can use the /s switch, but fundamentally this is the wrong tool. Plus it is built with the highestAvailable
option in the UAC manifest.
您需要的是reg
.像这样使用它:
What you need is reg
. Use it like this:
reg add "HKCU\Software\Autodesk\Fabrication 2014\Configuration\1011-Shady-Grove" /v Path /d C:/Autodesk/Profiles/05MA/1011-Shady-Grove
这篇关于需要帮助通过批处理文件添加注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文