Thanks for tool - still useful :)
Problem:
Removing Registry value from remote system
$null = Invoke-WmiMethod -Namespace 'root\default' -Class 'StdRegProv' -Name 'DeleteValue' -Argumentlist $reghive, $regpath, $registrydownname -ComputerName $RemoteComputer @optionalCreds
I could be missing something but "reghive" isn't defined - likely should be $HKLM?
Currently this command will fail, and credentials will be left in HKLM:\Software\Microsoft\DRM\ReadMe on each machine scanned?