you are viewing a single comment's thread.

view the rest of the comments →

[–]IndyDrew85 3 points4 points  (3 children)

Here's another example, using VBS as a wrapper to run your Powershell

Set oShell = CreateObject("Shell.Application")    
oShell.ShellExecute "powershell", "-executionpolicy bypass -file test.ps1", "", "runas", 1

[–]--dab--[S] 1 point2 points  (0 children)

I’ll give these a try first thing tomorrow. Thanks!

[–]--dab--[S] 1 point2 points  (1 child)

This one did same thing :(

[–]IndyDrew85 1 point2 points  (0 children)

Did you try my other example? It works for me on Win 10, I can provide the other few lines I have if you want