I'm trying to run this code :
import subproccess
subproccess.call('netsh interface ip set dns "(Network Name)" static 8.8.8.8')
The problem is that code needed to be run with administrator permission so how can I do that?
I'm trying to run this code :
import subproccess
subproccess.call('netsh interface ip set dns "(Network Name)" static 8.8.8.8')
The problem is that code needed to be run with administrator permission so how can I do that?