Link to home
Start Free TrialLog in
Avatar of bibi92
bibi92Flag for France

asked on

execute powershell on vbscript

Hello,

How can I execute a powershell script on vbscript?

Thanks
Regards
bibi
Avatar of morpheios
morpheios
Flag of Russian Federation image

Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "%comspec% /C powershell.exe yourscript.ps1", 0, True
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bibi92

ASKER

Thanks