Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Com error running MS Access Runtime from Powershell

$
0
0

I recently wrote a small powershell script frontend loader/launcher for my Access DB. The launcher part of the script:

$ms_access = New-Object -ComObject Access.Application
$ms_access.Visible = $true
$ms_access.OpenCurrentDataBase("C:\Ag_Jedi\Ag Jedi..accdb")

This works perfectly on computer where office is installed (2013/365). I also have a terminal server where mobile users remote into. These users don't need office so I installed the MS Access Runtime on the server.

My script fails:
New-Object : Retrieving the COM class factory for component with CLSID xxxxxx failed due to the following error ..... Resource unavailable.

I've been talking to Dr. Google and determined that the issue seems to be that the runtime does not create the proper registry entries for the CLSID to find the path to MSACCESS.exe.

I can't just copy over the...


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>