Asking for admin permissions in Windows using bash script
I’m trying to alter my hosts file in Windows using a bash script. It looks like this: echo "<ip_address> <replacement>" >> C:\\Windows\\System32\\drivers\\etc\\hosts It looks like I need admin permissions, how can I get those? I tried this, but it didn’t work either. cd C:\\Windows\\System32\\drivers\\etc chmod +x hosts echo "<ip_address> <replacement>" >> C:\\Windows\\System32\\drivers\\etc\\hosts Result chmod: changing… Read More Asking for admin permissions in Windows using bash script