Run powershell script from actions profile

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
BoschmanIT
Posts: 24
Joined: Fri Jul 16, 2021 4:08 am

Run powershell script from actions profile

Post by BoschmanIT »

Hi community,

Does anyone know how to launch a powershell script from the actions profile?
BoschmanIT
Posts: 24
Joined: Fri Jul 16, 2021 4:08 am

Post by BoschmanIT »

I found the External program option in the actions I just don't know how to call for powershell.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Described in Microsoft manuals

E.g.
powershell.exe scriptfilename
or
powershell.exe -File scriptfilename
or
powershell.exe -NonInteractive -File scriptfilename
or
powershell.exe -Command "script command"
or
C:\Windows\sysnative\WindowsPowerShell\v1.0\powershell.exe -File scriptfilename
(if you need x64 version of powershell)

Regards
Alex
Post Reply