Is this platform Vista or higher?
If so, if UAC is enabled, try running the script from a command prompt "as administrator" and see if that works.

Logging in as a member of the administrators group is not the same as running as the local Administrator account.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D