powershell 删除特定的注册表项

编程入门 行业动态 更新时间:2024-10-26 18:25:14
本文介绍了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 删除特定的注册表项

本文发布于:2023-11-03 14:36:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555379.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:注册表   powershell

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!