Hello everybody,

I am posting this message as I am having some issues in order to modify an existing registry key in Windows using this code :

 Code:
$rc=WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","TaskbarAI","0","REG_DWORD")


Even in the great book by Bob Kelly, it is mentioned that such command is supposed to create/modify a value depending on the context.

I really do not understand the reason why I am having a duplicate key instead.
At the moment, I am trying to make it work on a Windows 10 64 bits Operating System.

Would you have any idea ?

Thanks in advance for your help.

Fred