Hi There,
I am trying to download files from HP records manager using document id.
I have this working in a excel using macro. I am trying to develop powershell script so that I can automate this easily
can some one help me troubleshoot the below issue.
is it because of any package required to import. if you have a working script please share there is no much help on google for this topic.
thank you.
kumar
----------------------------------------------
Add-Type
-Path "C:\Program Files (x86)\Hewlett-Packard\HP Records Manager\HP.HPTRIM.SDK.dll"
$db
=
New-Object
HP.HPTRIM.SDK.Database
$db.Dispose()
Results
New-Object : Exception calling ".ctor" with "0" argument(s): "The type initializer for 'HP.HPTRIM.SDK.trimPINVOKE' threw an exception."
At line:3 char:8
+ $db = New-Object HP.HPTRIM.SDK.Database
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
You cannot call a method on a null-valued expression.
At line:5 char:5
+ $db.Dispose()
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull