mrflibblehat Posted December 19, 2013 Share Posted December 19, 2013 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 [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
orbs Posted December 19, 2013 Share Posted December 19, 2013 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. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
mrflibblehat Posted December 19, 2013 Author Share Posted December 19, 2013 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] Link to comment Share on other sites More sharing options...
orbs Posted December 19, 2013 Share Posted December 19, 2013 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. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now