Put it as Startup script, instead of logon script.
This is run under the "System" account, which has the privileges to make those changes.