Sign in to follow this  
Followers 0
probedrone

Run POWERSHELL from Autoit

4 posts in this topic

I dont know if a lot of people are familiar with powershell, but basically how would you be able to run a powershell script form autoit?

It isnt a program, so doing Run(Script.ps1) would just open a text file, and doing @COMSPEC won't work since it isnt really a DOS console app...

Share this post


Link to post
Share on other sites



Not sure about but you can try:

Run("program_name path_to_your_script\Script.ps1")

program_name will be the name of your power shell exe (give a full name - path included)

path_to_your_script\Script.ps1 - the full name of your script (path included)


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

try retrieving (in taskmgr) the process name for the powershell box.

then you should be able to run("interpreter" & " script.psl")

Edited by lordofthestrings

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0