Categories

Registry 4

Now is the time to delete a registry key

001
002
$reg = [Microsoft.Win32.Registry]::LocalMachine
$key = $reg.DeleteSubKey("Software\ITKE PSAdmins")

If there is a tree of subkeys then we can use the DeleteSubKeyTree() method

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>