Here's a sample...

Code:

$rc = WriteValue("HKCR\kixfile\DefaultIcon", "", "%WINDIR%\system32\SHELL32.dll,21", "REG_SZ")