Hi can someone pls help me to run powershell from vbscript as a administrator
VB Script
MyPath = "c:\temp\folder1" Dim objShell Set objShell = CreateObject("Wscript.Shell") objShell.run("powershell.exe -noexit -file C:\temp\power.ps1 " & MyPath)
PowerShell power.ps1
C:\temp\psfile.exe $args[0] -c