Hi Les, Yes I am aware that HKCU doesn't actually exist and that its merely a reflection of how the HKU area. You misunderstood me - I don't want to run the sched task as the user, because that defeats the whole point of running it as a scheduled task - ie to elevate the privileges in order to have the right to write to the registry keys required. Perhaps a better way to rephrase it would be to say that I want to run the scheduled task as the domain admin account, but tell the script to write to the logged on user area of the registry and not the scheduled task user. I did look into how to write to the HKU\SID area and ran into a stumbling block in that I can't see how to tell the script which SID to write to as obviously this will change with each user and no doubt each computer!

I don't recall that I have ever asked for a fish, but I like your way of thinking lol !