Community discussions

MikroTik App
 
apiel1
newbie
Topic Author
Posts: 29
Joined: Fri Apr 28, 2017 6:50 pm

Invoke Powershell Script from the Dude

Wed May 30, 2018 9:55 pm

I would like to make a probe that will execute the following powershell script on a networked computer in order to check for AC power loss on a laptop, but I am unsure how to get this to work. Any help would be appreciated.

Code: Select all

(Get-WmiObject -Class BatteryStatus -Namespace root\wmi -ComputerName $Computername).PowerOnLine

Who is online

Users browsing this forum: No registered users and 22 guests