I'm trying to write a simple script that changes a registry on all my servers. It reports back that this registry entry is 1 when it is actually 0 and when I do a write to it, the result is 0, but it doesn't change it from a 0 to a 1.

Any clue what I'm doing wrong?

Here is the snippet that I'm trying to run.

$rc = ReadValue("\\servername\hklm\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}","IsInstalled")

This comes back as 1 even though it's actually 0.

$rc = WriteValue("\\servername\hklm\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}","IsInstalled","1","REG_DWORD")

Comes back with a 0 and doesn't change the value to 1.

Thanks ahead of time.