Sign in to follow this  
Followers 0
mrflibblehat

#RequireAdmin

4 posts in this topic

Hi Team,

Just a quick one, does #RequireAdmin also give elevated privileges  to the command line when using Run or RunWait, As I need to disable windows internal firewall in batch at it is causing problems with our work VPNs  :geek:


[font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]

Share this post


Link to post
Share on other sites



yes. any child process inherits its security context from its parent, so if parent is elevated, so is child. you can also check it yourself.

Share this post


Link to post
Share on other sites

yes. any child process inherits its security context from its parent, so if parent is elevated, so is child. you can also check it yourself.

 

I am not at the place to test right now, but thank you for your answer


[font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]

Share this post


Link to post
Share on other sites

there may be an easier way, if you have domain admin or equivalent account that allows you to manage workstations over the network, use this:

psexec ComputerHostname netsh firewall set opmode disable

b.t.w if you are not familiar with psexec, now is a good time.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0