MicuMacu 0 Posted November 16, 2020 Share Posted November 16, 2020 Hello. I would like to use run command line task to update DNS and NTP records on multiple (250+) computers. I’m planning to use cmdlets to accomplish this, but not sure it will work as my clients PCs are in kiosk mode and for changes to the network settings the admin privileges are required. Can this be done using Run command task? For now I can’t test this as it is a closed network and I’m not on site. Thanks for your input. Link to comment Share on other sites More sharing options...
Administrators Marcos 5,250 Posted November 16, 2020 Administrators Share Posted November 16, 2020 The Run command task runs the command in the local system account so elevation is not required. MicuMacu 1 Link to comment Share on other sites More sharing options...
MicuMacu 0 Posted November 16, 2020 Author Share Posted November 16, 2020 (edited) Thanks, I hoped that this is the case. So standard cmdlets should work. For multiple cmdlets I can use delimiters. Right? Thanks for the help. Edited November 16, 2020 by MicuMacu Link to comment Share on other sites More sharing options...
ESET Staff Solution MartinK 383 Posted November 16, 2020 ESET Staff Solution Share Posted November 16, 2020 9 hours ago, MicuMacu said: Thanks, I hoped that this is the case. So standard cmdlets should work. For multiple cmdlets I can use delimiters. Right? Thanks for the help. Yes, in case of multiple commands, one have to enter delimited one-liner, as it would be done in one-line BAT file. Just a note, this will be improved in upcoming released, where multi-line commands will be possible, which should simplify such scenarios. MichalJ and jimwillsher 2 Link to comment Share on other sites More sharing options...
jimwillsher 65 Posted November 18, 2020 Share Posted November 18, 2020 Great to hear this this is going to be improved, I have some fairly complex PowerScript commands that I execute via the run command. For example I have commands which will: Download TeamViewer Download a config file Install TeamViewer using msiexec Email me the TeamViewer ID from the registry. Getting this to work took time, and seeing all this on a single line script is horrible to maintain :) So seeing an improved experience will be fantastic. MichalJ 1 Link to comment Share on other sites More sharing options...
MicuMacu 0 Posted November 19, 2020 Author Share Posted November 19, 2020 Thanks again to all. It worked as a charm. This task has great potential... Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts