Hello, so I have a problem with an executable I created.
Let me start from the beginning: I'm sysadmin at a school, 2 servers. 1 server is for telephony, the other one is a windows data server, dhcp and dns server.
All notebooks used in classes are accessed by users with standard accounts.
I need to make it so that these notebooks work as wifi access points. I tried out all imaginable software and they all have one problem: the password is very easy to see or unhide. I need students to NOT know the password.
So that's what came to mind: I created a batch file with the following commands.
netsh wlan set hostednetwork mode=allow ssid=”***” key="***”
netsh wlan start hostednetwork
They must be executed with admin rights obviously.
I then created an exe out of the batch file using a specific software, and it works. Again, I have to execute it with admin rights.
So, the problem is, I've tried to create a shortcut with runas:
runas /user:DomainName\Administrator /savecred “C:\Path\To\Program.exe“
But it doesn't work as it should, it doesn't seem to actually run as admin, so nothing happens.
There are no error messages or anything.
So I was wondering, do you see something wrong in my reasoning, do you have any ideas?