PSHELL and out-of-process servers

From a 64-bit Powershell, I can use 32-bit Microsoft Excel 2007 as an out-of-process server;
Code:
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\utils> [Environment]::Is64BitProcess
True
PS C:\utils> $excel = new-object -com Excel.Application
PS C:\utils> $excel.Version()
12.0
PS C:\utils>

From a 64-bit PowerShell, I can use 32-bit Microsoft Word 2007 as an out-of-process server;
Code:
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\utils> [Environment]::Is64BitProcess
True
PS C:\utils> $word = new-object -com Word.Application
PS C:\utils> $word.Version()
12.0
PS C:\utils>

From a 64-bit PowerShell, I can use 32-bit Visual FoxPro 9.0 as an out-of-process server;
Code:
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\utils> [Environment]::Is64BitProcess
True
PS C:\utils> $vfp = new-object -com VisualFoxPro.Application
PS C:\utils> $vfp.Version()
9.0
PS C:\utils>

From 64-bit TCC, I cannot use 32-bit Microsoft Excel 2007 as an out-of-process server via PSHELL;
Code:
c:\users\jlc\utils>pshell /s "$excel = new-object -com Excel.Application"
PSHELL: System.Management.Automation.CmdletInvocationException : Retrieving the COM class factory for component with CLSID {00
024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x8
0070005 (E_ACCESSDENIED)).

From 64-bit TCC, I cannot use 32-bit Microsoft Word 2007 as an out-of-process server via PSHELL;
Code:
c:\users\jlc\utils>ver

TCC  23.00.28 x64   Windows 7 [Version 6.1.7601]

c:\users\jlc\utils>pshell /s "$word = new-object -com Word.Application"
PSHELL: System.Management.Automation.CmdletInvocationException : Retrieving the COM class factory for component with CLSID {00
0209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x8
0070005 (E_ACCESSDENIED)).

From 64-bit TCC, I cannot use 32-bit Microsoft Visual FoxPro as an out-of-process server via PSHELL;
Code:
c:\users\jlc\utils>ver

TCC  23.00.28 x64   Windows 7 [Version 6.1.7601]

c:\users\jlc\utils>pshell /s "$vfp = new-object -com VisualFoxPro.Application"
PSHELL: System.Management.Automation.CmdletInvocationException : Retrieving the COM class factory for component with CLSID {00
2D2B10-C1FA-4193-B134-D86EAECC5250} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x8
0070005 (E_ACCESSDENIED)).

As I cannot use 32-bit in-process servers from 64-bit PowerShell, I completely understand that I cannot use 32-bit in-process servers from 64-bit TCC via PSHELL.

However, as I can use 32-bit out-of-process servers from 64-bit PowerShell, I should be able to use 32-bit out-of-process servers from 64-bit TCC via PSHELL.

Joe
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly PSHELL and COM Object in v27 Support 1
Joe Caverly PSHELL in v27 vs. 26 Support 17
vefatica @PSHELL? Support 5
Peter Murschall v27.00.17: PSHELL /S dosn't do nothing Support 8
Joe Caverly PSHELL and NTFS File Streams Support 2
vefatica PSHELL: How pass arguments to script? Support 15
Joe Caverly Using @PSHELL from @EVAL Support 8
vefatica PSHELL and @PSHELL fail the first time in a new TCC. Support 3
Peter Murschall Documentation Question to %@PSHELL Support 4
Joe Caverly PSHELL and @PSHELL errorlevel values Support 4
Joe Caverly PSHELL /C Support 7
vefatica What happens to PSHELL after 20 seconds? Support 9
Joe Caverly .PS1 script does not work with PSHELL Support 11
Joe Caverly How to use Powershell Profile with PSHELL Support 14
samintz PSHELL's CWD Support 2
Joe Caverly Missing PSHELL in HELP Support 0
Joe Caverly PSHELL Blank Line Display Support 2
vefatica PSHELL? Support 6
Joe Caverly PSHELL and Receive-Job Support 4
Joe Caverly PSHELL Error? Support 16
Joe Caverly Documentation @PSHELL Support 0
M Fixed PSHELL command returns error Support 2
vefatica SETP usually fails with a 32 bit process Support 4
x13 Check if process is elevated? Support 11
Alpengreis Remaining TCMD background process (v26) ... Support 19
vefatica Tmp files from in-process pipes not deleted Support 6
Jay Sage TASKLIST Command Process Count Support 5
CWBillow Upgrade process Support 7
Joe Caverly SETP and 32-bit process Support 2
rps V20 In-process pipes problem Support 8
R Fixed Internal ZIP command fails to process multiple files Support 3
C Determine process svchost is running Support 13
fpefpe WAD Python support does not process command line Support 14
M WAD tcmd.exe crashes and leaves an orphaned tcc.exe process Support 6
Stefano Piccardi replace tcc process space? Support 8
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
D Environment in elevated process Support 1
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 5
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 0
Phileosophos ren /s does not process subdirectories Support 3
T Starting a process blocks TCC window... Support 2
nikbackm Find out when a process has stopped Support 5
N Unable to end tcc.exe process Support 1
E CPU usage of a process Support 2
Jay Sage Directory Alias Access to FTP Servers Support 2
M TCC starts with delay on Servers Support 7
J Sendmail, SSL and MS Servers Support 11

Similar threads