Delete Registry value if it exist

This script checks for a value "test" if it exist in HKEY_LOCAL_MACHINE\Software\Testkey. If the value is found, it deletes the Value named "test". If it does not exist it display "The value does not exist" on screen. The code is given below$regkeypath= "hklm:\Software\Testkey"$v

Add to favorites
E-mail Twitter Digg Facebook