Actually thats more likely to be removed by a common cleaner like ccleaner as they scan for unnecessary registry keys, a ".txt" can not be determined as being necessary or not.

Plus having the script run as an admin requires me to put the account details in an unprotected script that anyone has read access to. Thats why I would run it when a admin logs in. I know there are programs to package it into an exe that can run at login but that costs money.

I also run this script when nobody is in so im not worried about saturating the network, plus I can have the login script schedule this script to run when I specify.

This is for a schools, so the permissions for users and what they can do is more restricted. It has to be as tight as possible,

Thank you for the pointers though, you have given me some ideas and helped me troubleshoot the script.