powershell 删除特定的注册表项 [英] powershell removing a specific registry key

查看:100
本文介绍了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 删除特定的注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆