<?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: Powershell script calling Excel COM object fails in a stored process in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120246#M1228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be a couple of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One might be that with the local accounts (sassrv and sasdemo), the R: drives are not mapped in the login profile, so you might have to reference the UNC paths instead (\\myserver\path).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, it might be that you have to enable the server machine &lt;A href="http://support.sas.com/documentation/cdl/en/bisecag/63082/HTML/default/viewer.htm#p1uhz7klzwwvr8n1r51h0nhcw2zm.htm"&gt;as Trusted for Delegation&lt;/A&gt; so that it can access these network resources on behalf of the account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or it might be both of these issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 12:48:39 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2013-08-23T12:48:39Z</dc:date>
    <item>
      <title>Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120245#M1227</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;This post is related to &lt;A _jive_internal="true" href="https://communities.sas.com/thread/48769"&gt;https://communities.sas.com/thread/48769&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a Powershell script to shrink Excel XML files created by Excel tagsets.&amp;nbsp; Since the script is short, here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[CmdletBinding(SupportsShouldProcess=$true)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;param(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; # full path to the original Excel file (usually in XML format)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [Parameter(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Position=0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mandatory=$true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; )]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [Alias("Path")]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [ValidateScript({Test-Path $_})]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [System.IO.FileInfo]$xlFile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; # ouptput format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [Parameter(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Position=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; )]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [Alias("Format")]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [ValidateSet("xlsx","xlsm","xlsb","xls")]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; [String]$xlFormat="xlsb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$ErrorActionPreference="Stop"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$xlPath=$xlFile.DirectoryName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$xlBasename=$xlFile.Basename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;switch ($xlFormat) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; "xlsx" {$xlFormatNum=51; break}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; "xlsm" {$xlFormatNum=52; break}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; "xlsb" {$xlFormatNum=50; break}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; "xls"&amp;nbsp; {$xlFormatNum=56; break}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$Excel = New-Object -ComObject excel.application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$Excel.visible = $False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$Excel.displayalerts=$False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$WorkBook = $Excel.Workbooks.Open($xlFile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$WorkBook.SaveAs((Join-Path $xlPath "$xlBasename.$xlFormat"), $xlFormatNum)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$Excel.quit()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script works fine in these scenarios:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Invoked directly from a cmd or powershell window.&lt;/P&gt;&lt;P&gt;2) Invoked from a Base SAS session, i.e. DMS&lt;/P&gt;&lt;P&gt;3) Invoked from EG if I use a domain profile, i.e. &amp;lt;domain&amp;gt;\&amp;lt;myuserid&amp;gt;, &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script fails in these scenarios:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Invoked from a stored process running on a stored process server, which is running as sassrv.&lt;/P&gt;&lt;P&gt;2) Invoked from EG if I use an Integrated Windows Authentication profile.&lt;/P&gt;&lt;P&gt;3) Invoked from EG if I use a local machine account profile, i.e. &amp;lt;machinename&amp;gt;\sasdemo, &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried numerous ways of invoking it:&amp;nbsp; X, system(), systask, WinExec (see &lt;A href="http://www.devenezia.com/downloads/sas/sascbtbl/" title="http://www.devenezia.com/downloads/sas/sascbtbl/"&gt;SASCBTBL Routine Statements for use with SAS ModuleN() routine - by Richard A. DeVenezia&lt;/A&gt;), filename pipe.&amp;nbsp; filename pipe gives the best error messaging:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;%let&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; excel_xml=R:\Temp\Book1.xml;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; in &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;pipe&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;"C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt; -noprofile &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt; -noninteractive &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt; -executionpolicy unrestricted &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt; -windowstyle hidden &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt; -command ""E:\Powershell\Scripts\ShrinkExcel.ps1 -xlfile '&amp;amp;excel_xml' -xlformat xlsb"" "&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; in;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;putlog&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: fuchsia; background: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; in;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the log output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt;NOTE: The infile IN is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt; PROCESS=C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe&amp;nbsp; -noprofile -noninteractive&amp;nbsp; -executionpolicy unrestricted &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -windowstyle hidden&amp;nbsp; -command "E:\Powershell\Scripts\ShrinkExcel.ps1 -xlfile 'R:\Temp\Book1.xml' -xlformat xlsb",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: blue; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;Stderr output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;E:\Powershell\Scripts\ShrinkExcel.ps1 : Exception calling "Open" with "1" argument(s): "Microsoft Office Excel cannot access the &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;file 'R:\Temp\Book1.xml'. There are several possible reasons:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;_ The file name or path does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;_ The file is being used by another program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;_ The workbook you are trying to save has the same name as a currently open workbook."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;At line:1 char:1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;+ E:\Powershell\Scripts\ShrinkExcel.ps1 -xlfile 'R:\Temp\Book1.xml' -xlformat xlsb&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [ShrinkExcel.ps1], MethodInvocationException&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : ComMethodTargetInvocation,ShrinkExcel.ps1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAS process is running on a workspace server, where R: and E: are local drives to that server (i.e. not mapped).&amp;nbsp; R: has Everyone full access, so it isn't a permissions issue.&amp;nbsp; The workbook is not open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;nothing&lt;/STRONG&gt;&lt;/SPAN&gt;, except my EG profile to my domain account, the code runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I note these blog posts by &lt;A __default_attr="649524" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: &lt;A href="http://platformadmin.com/blogs/paul/tag/iwa/" title="http://platformadmin.com/blogs/paul/tag/iwa/"&gt;IWA - platformadmin.com&lt;/A&gt; and wonder if these could be the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be specific to the excel.application COM object.&amp;nbsp; If I change my Powershell script to run something simple, like copy the XML file to a new name, it runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd really like to be able to run this script on our stored process server.&amp;nbsp; We have a number of remote users that are experiencing performance issues in downloading the huge XML files to their location.&amp;nbsp; Changing the stored process to run under the workspace server is not an option, as it needs to stream output to the user's browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Scott&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 00:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120245#M1227</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-08-23T00:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120246#M1228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be a couple of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One might be that with the local accounts (sassrv and sasdemo), the R: drives are not mapped in the login profile, so you might have to reference the UNC paths instead (\\myserver\path).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, it might be that you have to enable the server machine &lt;A href="http://support.sas.com/documentation/cdl/en/bisecag/63082/HTML/default/viewer.htm#p1uhz7klzwwvr8n1r51h0nhcw2zm.htm"&gt;as Trusted for Delegation&lt;/A&gt; so that it can access these network resources on behalf of the account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or it might be both of these issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 12:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120246#M1228</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-08-23T12:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120247#M1229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:, D:, E:, R:, S:, T: are all local drives on the server (VMWare image).&amp;nbsp; IOW, if I go into Disk Manager, I see all these drives, they are not mapped by a login script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll investigate the Trusted for Delegation link.&amp;nbsp; But it is interesting that it only happens for the Excel COM object, Open method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 14:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120247#M1229</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-08-23T14:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120248#M1230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if you can log into the server directly, and attempt to run your script via a &lt;STRONG&gt;runas&lt;/STRONG&gt; command using the local accounts (sassrv or sasdemo to test).&amp;nbsp; That might tell you at least whether those local accounts can run the COM commands in that script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that fails (and I'm stretching my knowledge here), you might need to tweak the DCOM configurations (dcomcnfg tool).&amp;nbsp; See &lt;A href="http://superuser.com/questions/579900/why-cant-excel-open-a-file-when-run-from-task-scheduler"&gt;this topic for a hint&lt;/A&gt; (relates to a scheduled task).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 14:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120248#M1230</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-08-23T14:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120249#M1231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Scott,&lt;/P&gt;&lt;P&gt;We use the ODS Excel tagset extensively and have a very similar PowerSherll script to convert the XML file to .xlsb (and apply a bit of formatting).&amp;nbsp; This has been working fine until we recently upgraded to a new server and I installed Office 2013 (previously had Office 2010).&amp;nbsp; We started to get the same errors and the solution I found was to update the credentials on the DCOM object (found via this link:&amp;nbsp; &lt;A href="http://superuser.com/questions/579900/why-cant-excel-open-a-file-when-run-from-task-scheduler" title="http://superuser.com/questions/579900/why-cant-excel-open-a-file-when-run-from-task-scheduler"&gt;powershell - Why can&amp;amp;#39;t Excel open a file when run from task scheduler? - Super User&lt;/A&gt;).&amp;nbsp; I'm not sure if this will apply to your scenario but it took care of the issue we were running into.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 15:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120249#M1231</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2013-08-25T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120250#M1232</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;Thanks Chris and Dave. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SAS Workspace Server machine is Windows 2008 R2 Enterprise x64.&amp;nbsp; The Office version on that machine is Excel 2007 SP3.&amp;nbsp; I think it's the 32bit version; Excel Help --&amp;gt; About doesn't say, but the Excel executable is in C:\&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Program Files (x86)&lt;/STRONG&gt;&lt;/SPAN&gt;\Microsoft Office\Office12\EXCEL.EXE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've invoked the DCOM Configuration Manager on that machine in accordance with the link provided.&amp;nbsp; However, I don't see a Microsoft Excel Application entry.&amp;nbsp; I've attached a screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11049i3680244B4E65BD46/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="DCOM Config SAS Workspace Server.png" title="DCOM Config SAS Workspace Server.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 04:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120250#M1232</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-08-29T04:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120251#M1233</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;More Googling revealed this &lt;A href="http://social.technet.microsoft.com/Forums/windows/en-US/dde69147-a01a-4eb1-8ea9-31adbf874bed/microsoft-excel-application-entry-missing-in-dcomcnfg" title="http://social.technet.microsoft.com/Forums/windows/en-US/dde69147-a01a-4eb1-8ea9-31adbf874bed/microsoft-excel-application-entry-missing-in-dcomcnfg"&gt; Microsoft Excel Application entry missing in DCOMCNFG &lt;/A&gt;.&amp;nbsp; I followed tibb's recommendation, found Microsoft Excel Application, and made the changes as recommended by Dave, i.e. changed the Identity tab to use &amp;lt;machinename&amp;gt;\sassrv for DCOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working now, thanks so much for your help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.:&amp;nbsp; Dave, if your PS script doesn't contain private IP, I'd love to get a copy of it.&amp;nbsp; I'm always looking for more PS examples!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 12:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120251#M1233</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-08-29T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120252#M1234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I trimmed down the script we use to just the Excel basics (the original script has a lot of error checks specific to our directory structures along with emails).&amp;nbsp; While we're processing the file, we added a step to call autofit in Excel to clean up the appearance (cell spacing) in the final output (script file attached).&amp;nbsp; In our SAS job, we write the ODS file out to the work directory and then call the PS script with the system command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like you, I'm always interested in scripting with PowerShell.&amp;nbsp; Chris has several great 'PowerShell with SAS' related posts on his blog: &lt;A href="http://blogs.sas.com/content/sasdummy/tag/powershell/" title="http://blogs.sas.com/content/sasdummy/tag/powershell/"&gt;PowerShell - The SAS Dummy&lt;/A&gt; and an SGF13 paper: &lt;A href="http://support.sas.com/resources/papers/proceedings13/003-2013.pdf" title="http://support.sas.com/resources/papers/proceedings13/003-2013.pdf"&gt;http://support.sas.com/resources/papers/proceedings13/003-2013.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 17:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120252#M1234</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2013-08-29T17:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120253#M1235</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'm going to try jumping in with a related question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the general idea here is that you are writing an ODS output file to the work directory, post-processing it, and then streaming it back to _webout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been doing something similar, not for editing the file, but for delaying delivering the report until I have scanned the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.bi-notes.com/2012/07/stored-process-ignore-log-your-own-peril"&gt;http://www.bi-notes.com/2012/07/stored-process-ignore-log-your-own-peril&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ugly macro that I use to stream the file back to the user.&amp;nbsp; Which is basically a data _null_ step writing to file _webout.&amp;nbsp; But it several options for different file types (html/rtf/pdf/xml), to set both stpsrv_header and other options.&amp;nbsp; For pdf, the data _null_ step does a binary copy using this approach: &lt;A class="active_link" href="http://support.sas.com/kb/6/588.html"&gt;http://support.sas.com/kb/6/588.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For html/rtf/xml it's mostly just PUT _INFILE_ , but it gets tripped up by LRECL every once in a while (or I just set LRECL to be insanely long).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was wondering if someone has a generic %StreamToWebOut(file=) macro that they like and want to share, where the macro would stream any file sitting on the server back to _webout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was thinking maybe I should just use the binary copy method for every file type....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 11:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120253#M1235</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-08-30T11:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120254#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quentin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used an approach like this (which I &lt;A href="http://blogs.sas.com/content/sasdummy/2011/06/17/how-to-use-sas-data-step-to-copy-a-file-from-anywhere/"&gt;shared in this article&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filename in "myFileName.xlsx"; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/******************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* With Excel file created, now to stream it back to&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* client with _webout and the "attachment" directive */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* For use with SAS Stored Process Web Application&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/******************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* Specify HTTP header records */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; rc = stpsrv_header('Content-disposition',"attachment; filename=&lt;SPAN style="font-family: 'courier new', courier;"&gt;myFileName.xlsx&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; /* stream content byte-by-byte to _WEBOUT */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; length filein 8 fileid 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; filein = fopen('in','I',1,'B');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; fileid = fopen('_webout','O',1,'B');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; rec = '20'x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; do while(fread(filein)=0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = fget(filein,rec,1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = fput(fileid, rec);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc =fwrite(fileid);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; rc = fclose(filein);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; filename in clear;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 12:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120254#M1236</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-08-30T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120255#M1237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That looks promising as the core of a %StreamToWeb(), or maybe more generically, just %BinaryCopy(in=,out=) macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must have missed that post from your archives.&amp;nbsp; Thanks for sharing the link as well.&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2013 22:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120255#M1237</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-08-31T22:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120256#M1238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it's helpful.&amp;nbsp; Actually, &lt;A __default_attr="2147" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; has developed a more robust "binary copy" program and it's on my to-do list to share it on the blog.&amp;nbsp; My version might be good enough for your purposes, but I'll promote Bruno's version soon (given this prompt....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2013 13:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120256#M1238</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-09-01T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120257#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can any one explains about "Power shell Scripting". Is it works in Windows 32-bit O.S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 07:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120257#M1239</guid>
      <dc:creator>Iramesh</dc:creator>
      <dc:date>2013-09-17T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script calling Excel COM object fails in a stored process</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120258#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these, then ask follow up questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com.au/search?q=google&amp;amp;oq=google&amp;amp;aqs=chrome.0.0j69i65l2j0j69i65j0.1088j0&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8#q=what+is+powershell" title="https://www.google.com.au/search?q=google&amp;amp;oq=google&amp;amp;aqs=chrome.0.0j69i65l2j0j69i65j0.1088j0&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8#q=what+is+powershell"&gt;https://www.google.com.au/search?q=google&amp;amp;oq=google&amp;amp;aqs=chrome.0.0j69i65l2j0j69i65j0.1088j0&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8#q=what+is+powershell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Windows_PowerShell" title="http://en.wikipedia.org/wiki/Windows_PowerShell"&gt;Windows PowerShell - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 07:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Powershell-script-calling-Excel-COM-object-fails-in-a-stored/m-p/120258#M1240</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-09-17T07:29:59Z</dc:date>
    </item>
  </channel>
</rss>

