<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: python library for remote execution for windows in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211357#M16321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you be more specific about what type of action needs to be performed on the remote Windows machine?&amp;nbsp; 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.&amp;nbsp; Are you looking to perform some Esri-related function or something different?&amp;nbsp; Please reply with some further details about what you're trying to accomplish and we'll be able to provide some more direction.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi crafty762 ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for considering query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here i provide more details on my requirement .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This question is not related with Esri .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have built a gui as shown bellow :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32845[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above image if , here "STATION01" is selected and right click brings up context menu , now when i select "Enable Station" , it has to execute a python script on "STATION01" (Computer name) which is remote windows m/c&amp;nbsp; and that output of specified remote script's output need to come on bottom left text area of gui , the out put needs to be real time .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Apr 2014 15:50:39 GMT</pubDate>
    <dc:creator>deepakT_S</dc:creator>
    <dc:date>2014-04-06T15:50:39Z</dc:date>
    <item>
      <title>python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211355#M16319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All , &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a python library for windows which will execute script/command&amp;nbsp; on remote windows machine and get back the output of script/command to my windows machine in real-time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my windiws m/c runs windows 8 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;remote m/c runs windows NT 2000 server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in Advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deepakk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 10:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211355#M16319</guid>
      <dc:creator>deepakT_S</dc:creator>
      <dc:date>2014-04-05T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211356#M16320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you be more specific about what type of action needs to be performed on the remote Windows machine?&amp;nbsp; 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.&amp;nbsp; Are you looking to perform some Esri-related function or something different?&amp;nbsp; Please reply with some further details about what you're trying to accomplish and we'll be able to provide some more direction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 01:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211356#M16320</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-04-06T01:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211357#M16321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you be more specific about what type of action needs to be performed on the remote Windows machine?&amp;nbsp; 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.&amp;nbsp; Are you looking to perform some Esri-related function or something different?&amp;nbsp; Please reply with some further details about what you're trying to accomplish and we'll be able to provide some more direction.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi crafty762 ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for considering query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here i provide more details on my requirement .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This question is not related with Esri .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have built a gui as shown bellow :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32845[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above image if , here "STATION01" is selected and right click brings up context menu , now when i select "Enable Station" , it has to execute a python script on "STATION01" (Computer name) which is remote windows m/c&amp;nbsp; and that output of specified remote script's output need to come on bottom left text area of gui , the out put needs to be real time .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 15:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211357#M16321</guid>
      <dc:creator>deepakT_S</dc:creator>
      <dc:date>2014-04-06T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211358#M16322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This forum may not be the best place to ask non-Esri question; there are many others for Python if you do some searching.&amp;nbsp; That being said, what type of command are you wanting to run on the remote Windows computer?&amp;nbsp; For example, are you trying to launch some specific process on that remote computer or obtain information about the remote computer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 16:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211358#M16322</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-04-06T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211359#M16323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This forum may not be the best place to ask non-Esri question; there are many others for Python if you do some searching.&amp;nbsp; That being said, what type of command are you wanting to run on the remote Windows computer?&amp;nbsp; For example, are you trying to launch some specific process on that remote computer or obtain information about the remote computer?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi crafty762 ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree with you, i tried over python forums and check for python liberality over internet could not find useful information. Yes i am trying to execute some python script [this are the test scripts ] which will test H/w components of motherboard and produce output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 16:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211359#M16323</guid>
      <dc:creator>deepakT_S</dc:creator>
      <dc:date>2014-04-06T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211360#M16324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about something like this?&amp;nbsp; I don't know if this is what you're trying to achieve by "testing" the motherboard but the script below will produce information &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;about&lt;/SPAN&gt;&lt;SPAN&gt; the remote computer's motherboard.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable values can then be parsed and piped however you need for the remainder of your script.&amp;nbsp; Note that the &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;WMIC commands&lt;/A&gt;&lt;SPAN&gt; require the use of an account which has administrative access to the remote machine (in this case, STATION01).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211360#M16324</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2021-12-11T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211361#M16325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How about something like this?&amp;nbsp; I don't know if this is what you're trying to achieve by "testing" the motherboard but the script below will produce information &lt;SPAN style="font-style:italic;"&gt;about&lt;/SPAN&gt; the remote computer's motherboard.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The variable values can then be parsed and piped however you need for the remainder of your script.&amp;nbsp; Note that the &lt;A href="http://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;WMIC commands&lt;/A&gt; require the use of an account which has administrative access to the remote machine (in this case, STATION01).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi crafty762 ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the script say picetest.py on remote m/c which needs to be executed and output of pcietest.py need to be streamed back in real time. we need not wait for the program to complete and the output is sent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211361#M16325</guid>
      <dc:creator>deepakT_S</dc:creator>
      <dc:date>2021-12-11T10:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: python library for remote execution for windows</title>
      <link>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211362#M16326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only ways I'm aware of for running scripts on a remote machine is (1) creating a scheduled task for your PY script and issuing a run task command via SCHTASKS; (2) using a third-party tool like PSEXEC; or (3) writing a PowerShell script.&amp;nbsp; I don't know of a Python library that does what you need.&amp;nbsp; Try posing your question on StackExchange.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 10:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-library-for-remote-execution-for-windows/m-p/211362#M16326</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-04-07T10:22:07Z</dc:date>
    </item>
  </channel>
</rss>

