Using batch file to copy files to protected folders
I have a batch file that I want to run as post-imaging task (with our Kace K2000 imaging system) that copies a file from a network share into a folder in C:\Program Files. However, on Windows 7 I get an error when this is run unless I right click and choose "Run as administrator." Obviously I can't right click to do this if the script is running automatically in the Kace imaging environment. In the script, is there a way I can specify "Run as administrator" as a command?