Allowing users to run Apps as Administrator and Elevating in ...
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
Bookmark History
Saved by 2 people (0 private), first by anonymouse user on 2009-02-26
- Philashman on 2009-08-24 - Tags os , windows
- Netvolution on 2009-02-26 - Tags Windows , OS
Public Sticky notes
Highlighted by netvolution
Highlighted by netvolution
set /P IP=IP address:
set /P Gateway=Gateway IP address:
elevate netsh interface ip set address name=”Local Area Connection” static %IP% 255.255.255.0 %Gateway% 1
Highlighted by netvolution
The user will have to confirm the corresponding UAC prompt, but there is no administrator credential required. For some reason batch scripts won’t execute lines that come after the elevate command. That’s why we need another batch script for configuring the DNS server:
@echo off
set /P DNS=DNS server IP address:
elevate netsh interface ip set dns “Local Area Connection” static %DNS%
Highlighted by netvolution
Highlighted by netvolution


Public Comment