can you toss in optional $computer so it can be used against remote computers.

what about if the user that is execing this doesn't have admin... could it write to hkcu?

$localgr= '\\'+ @wksta +'\administrators','\\'+ @wksta +'\power users'
$admin = 0 + @inwin + ingroup($localgr) - 1
if $admin $key='hklm' else $key='hkcu' endif

[ 02. April 2003, 16:53: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask