hello,
i need to check HKLU environment path for reference to a UNC path. If the path exists, remove it. I've tried searching various topics but can't tailor anything for my needs. here is what i have so far (very poor i know but i'm trying).

$reg=ReadValue('HKEY_CURRENT_USER\Environment','Path')
if 'path' = "\\server\netlogon"
"yes"
else
"no"
endif

now, i know this is incorrect, it always returns no because there are other entries in the path. any help would be appreciated.