I have alot of clients on my network and I want my script to do the following:
 Open an elevated command prompt using the local admin details. Note: I do not want to have to enter a username and password for each user.
 Uninstall java using the following command: "wmic product where "name like 'java%'" call uninstall"
 I then want to install another version of Java once the PC reboots.
I'm not too worried about steps 2 and 3 at the moment, however step 1 is causing me some problems. I have tried the methods below:
I'm really just wondering if this is possible without going around to every PC on the network and entering the local admin password.
Thanks in advance. Timbo