Any such code would be treated as an executable by the security settings (especially on a server) and blocked or at the very least you would be asked to confirm its permissions. What is the concept of this code i.e. is it just something that can be added to a group policy to run at start up or does it have to be an "on click" scenario?