This is my batch file script:
::opens new cmd in admin mode powershell.exe -Command "Start-Process cmd -Verb RunAs" ::this needs to execute in the previously, newly opened cmd wmic product where name="xxx" call uninstall /nointeractive
To use the
wmic it requires an elevated administrator command prompt. I found the powershell command which actually opens the cmd in admin mode, however, when I try to run the following instruction, it selects the original command prompt which is not in admin mode...
Is there any way to continue the execution of my script in the newly opened cmd window?