I have a script that worked great under XP but now our machines are running Vista. The part where it fails is when it tries to process LoadHive. Here is the portion that fails:

$returncodeloadhive = LoadHive ("HKEY_USERS\A", "C:\test\ntuser.dat")

I get access denied. This still works under XP but fails under Vista. I am the local administrator with UAC turned off. Any clues?

Thanks for any help.