<?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 Is it possible to execute X command with Administrative privilages in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86291#M18503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run a DOS command through SAS. When I run this specific command in CMD as administrator it gives desired output. But if I run it simply by double clicking on it, it doesn't work. As an example: check the following command:&lt;/P&gt;&lt;P&gt;tasklist /FI "Imagename eq conhost.exe" /FI "username eq system"&lt;/P&gt;&lt;P&gt;when I run this from CMD as administrator I get 1 task in output. But if I run the same command as a simple user it replys that&lt;SPAN style="color: #0000ff;"&gt; Info: No tasks are running which match the specified criteria.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this is a privilage issue and an ordinary user doesn't have access to processes run by other users (or in this case system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the question is, if I want to get this result through SAS, then How should I do it?&amp;nbsp; Is it possible to run CMD from SAS with administrative privilages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your efforts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Saugata Mukherjee.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 15:29:16 GMT</pubDate>
    <dc:creator>Saugata</dc:creator>
    <dc:date>2013-09-18T15:29:16Z</dc:date>
    <item>
      <title>Is it possible to execute X command with Administrative privilages</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86291#M18503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run a DOS command through SAS. When I run this specific command in CMD as administrator it gives desired output. But if I run it simply by double clicking on it, it doesn't work. As an example: check the following command:&lt;/P&gt;&lt;P&gt;tasklist /FI "Imagename eq conhost.exe" /FI "username eq system"&lt;/P&gt;&lt;P&gt;when I run this from CMD as administrator I get 1 task in output. But if I run the same command as a simple user it replys that&lt;SPAN style="color: #0000ff;"&gt; Info: No tasks are running which match the specified criteria.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this is a privilage issue and an ordinary user doesn't have access to processes run by other users (or in this case system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the question is, if I want to get this result through SAS, then How should I do it?&amp;nbsp; Is it possible to run CMD from SAS with administrative privilages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your efforts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Saugata Mukherjee.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86291#M18503</guid>
      <dc:creator>Saugata</dc:creator>
      <dc:date>2013-09-18T15:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to execute X command with Administrative privilages</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86292#M18504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you run SAS as administrator?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86292#M18504</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-09-18T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to execute X command with Administrative privilages</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86293#M18505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like there are options to specify /U[user name] and /P[assword]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.computerhope.com/tasklist.htm"&gt;http://www.computerhope.com/tasklist.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 17:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-execute-X-command-with-Administrative/m-p/86293#M18505</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-09-18T17:10:51Z</dc:date>
    </item>
  </channel>
</rss>

