I am trying to write a value that contains quotes. How do I do this. I tried a variet of double quotes, single quotes, etc... but cannot get it to work.

The value I am looking at is "%1" %*. Sircam messed it up on some machines and now I want to check all PCs to see if it is the correct entry and if not make the change.

As you can see from my code the quotes end up all over the place and it does not work:--

$Key = "HKLM\Software\CLASSES\exefile\shell\open\command"
$Value = ""
$Read = ReadValue($Key,$Value)
If $Read <> ""%1" %*" $Write = WriteValue($Key,$Value,""%1" %*","REG_SZ") ENDIF
sleep 2