本文介绍了powershell 删除特定的注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 PowerShell 的新手,我正在尝试从运行注册表项中删除特定值.我正在使用 remove-item 命令,但是,我没有看到指定单个值的开关.我不想删除整个键,只删除一个值.
I am new to PowerShell and I am trying to remove a specific value from the run registry key. I am using the remove-item command, however, I don't see a switch to specify a single value. I don't want to remove the entire key, just one value.
参考我正在尝试做的批处理:
For reference the batch equivalent of what I am trying to do:
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f 推荐答案使用 cmdlet remove-itemproperty
use the cmdlet remove-itemproperty
更多推荐
powershell 删除特定的注册表项
发布评论