Windows PowerShell for Administration: The Personal Trainer by Stanek William
Author:Stanek, William
Language: eng
Format: epub
Publisher: Stanek & Associates
Published: 2015-07-01T04:00:00+00:00
Deleting Registry Keys and Values
You can delete registry keys using the Remove-Item cmdlet. Remove-Item has the following syntax
remove-item NamePath [-Force]
where NamePath is the full path to the registry key that you want to remove, and –Force is an optional parameter to force the removal of the key. In the following example, you delete the HKCU:\Software\Test2 key (and all its contents):
remove-item hkcu:\software\test2
As long as you have the appropriate permissions, you should be able to remove registry keys.
You can delete key values using the Remove-ItemProperty cmdlet. Remove-ItemProperty has the following syntax
remove-itemproperty [-Path] KeyPath [-Name] ValueName [-Force]
where KeyPath is the full path to the registry key that contains the value you want to remove, ValueName is the name of the value to remove, and –Force is an optional parameter to force the removal of the key value. In the following example, you delete the Data value for the HKCU:\Software\Test key:
remove-itemproperty –path hkcu:\software\test –name data
As long as you have the appropriate permissions, you should be able to remove key values.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7771)
Filmora Efficient Editing by Alexander Zacharias(5827)
The Infinite Retina by Robert Scoble Irena Cronin(5307)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(4002)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3937)
Edit Like a Pro with iMovie by Regit(3451)
Linux Administration Best Practices by Scott Alan Miller(2863)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2838)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2526)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2421)
Docker on Windows by Stoneman Elton(2321)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2317)
Creative Projects for Rust Programmers by Carlo Milanesi(2272)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2113)
Hands-On Linux for Architects by Denis Salamanca(2055)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2009)
Computers For Seniors For Dummies by Nancy C. Muir(2006)
The Old New Thing by Raymond Chen(1942)
Linux Kernel Debugging by Kaiwan N Billimoria(1765)
