/build/static/layout/Breadcrumb_cap_w.png

KixTart WriteValue

How do I overwrite values with KixTart in the registry? I have something like:

$Write = WriteValue($DNSKEY,"SearchList",$Parameters,"REG_SZ")

If i run the script more than once it keeps appending the $parameters to the SearchList key. How can i get it to overwrite?


Thanks

0 Comments   [ + ] Show comments

Answers (1)

Posted by: schieb 18 years ago
Purple Belt
0
Nevermind, the author had an if statement built in if there was a comma. I just commented it out

; If $DNS = ""
$Write = WriteValue($DNSKEY,"SearchList",$Parameters,"REG_SZ")
; Else
; $Parameters = $Parameters + "," + $DNS
; $Write = WriteValue($DNSKEY,"SearchList",$Parameters,"REG_SZ")
; EndIf


DNSSuffix("server.div.domain.com,div.domain.com")
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ