Tom: Sounds like a permission problem, HKLM requires (the executer of the script) to be a member of the target machine's Administrators group.