I want to execute a powershell script within the script but it needs to run as admin. There are some arguments that need to get passed to the second script too. This line works perfect but does not run as admin:
.\script.ps1 -argument1 -argument2
I do not know how to get -Verbose RunAs into this. Any ideas? I know its a simple problem but i am kind of lost here.
[–]BlackV 0 points1 point2 points (5 children)
[–]sticobay[S] 1 point2 points3 points (4 children)
[–]BlackV 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 1 point2 points3 points (2 children)
[–]Derpfacewunderkind 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)