I have a batch file called test.bat, i am calling the below instructions in test.bat file
"start /min powershell.exe %sysdrive%\testScripts\testscript1.ps1"
When i run this through the command prompt my testscript is running successfully. i want to run it as administrator(like i have created a desktop item and run as administrator, it shouldn't prompt for any username or password)
I have tried adding "/elevate" and "/NOUAC" parameters in the above test.bat but no luck. can someone help me how to fix this issue?
I know how to do it manually but i want this to be executed from the command prompt
thanks in advance.
add this parameter to Start-Process:
Am facing the same problem. Hope anyone here can help me too. Thanks in advance. Regards,
Powered by IDERA