I have a PS script that I inherited, and that used to work fine (arrrrgg), so this may be naive question. Running W11 on a recently purchased machine. Have the most recent version of Powershell.
The script starts off with
$penrequest = new-object -comobject Anoto.ServiceAPI.PenRequest
$file = new-object -comobject AnotoUtil.File
The Anoto.ServiceAPI is installed, as shown in the Registry:
Anoto.ServiceAPI.PenRequest.1
CLSID REG_SZ {38990EBA-D016-4797-AFA4-2A9BC7E70648}
It worked fine a few months ago, Yet when I try to run it now, I get:
new-object : Retrieving the COM class factory for component with CLSID {38990EBA-D016-4797-AFA4-2A9BC7E70648} failed
due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
At C:\ClockSketch Downloader Service\ConvertTrailsTests.ps1:4 char:19
-
$penrequest = new-object -comobject Anoto.ServiceAPI.PenRequest -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : ResourceUnavailable: (
[New-Object], COMException - FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand
- CategoryInfo : ResourceUnavailable: (
Have I missed something in the installation? I thought I had done what I did previously, and the CLSID is indeed the registry.
If the problem is “Class not registered”, how do I register it, and what class?
Many thanks for any guidance.