I have to execute below block of code in elevated previllage, as that particular wmic class will work only with admin previlage.
i am getting out put when i launch autoit as administrator, but i will not be able to launch autoit as admin in this particular case but my user have admin rights.
is there any better way i can run those command as administrator.?
tried below steps:
i have tried #RequireAdmin but that creates a user prompt
Tried using Runas command but gives error as wrong username or password , stuck with that step.