Can you be more specific about what type of action needs to be performed on the remote Windows machine? There are ways to run commands on a remote machine using third-party tools and sometimes using Windows batch commands; typically these require that you have Administrator privileges or Log on As Batch Job rights on the remote machine. Are you looking to perform some Esri-related function or something different? Please reply with some further details about what you're trying to accomplish and we'll be able to provide some more direction.
This forum may not be the best place to ask non-Esri question; there are many others for Python if you do some searching. That being said, what type of command are you wanting to run on the remote Windows computer? For example, are you trying to launch some specific process on that remote computer or obtain information about the remote computer?
import os product = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get product').readlines() manuf = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get manufacturer').readlines() serial = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get serialnumber').readlines() model = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get model').readlines() name = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get name').readlines() partnum = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get partnumber').readlines() slot = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get slotlayout').readlines() print product, manuf, serial, model, name, partnum, slot
How about something like this? I don't know if this is what you're trying to achieve by "testing" the motherboard but the script below will produce information about the remote computer's motherboard.import os product = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get product').readlines() manuf = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get manufacturer').readlines() serial = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get serialnumber').readlines() model = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get model').readlines() name = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get name').readlines() partnum = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get partnumber').readlines() slot = os.popen('wmic /user:"DOMAIN\USER" /password:"PASSWORD" /node:"STATION01" baseboard get slotlayout').readlines() print product, manuf, serial, model, name, partnum, slot
The variable values can then be parsed and piped however you need for the remainder of your script. Note that the WMIC commands require the use of an account which has administrative access to the remote machine (in this case, STATION01).