Is there some microsoft libary that installs the COM classes needed without actually installing O365 on a server to just run a powershell program? When we try to run on a workstation with O365, no problem but if we run on a server without O365 installed we get this sort of error:
New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
+ $excel = New-Object -ComObject excel.application
+ CategoryInfo : ResourceUnavailable: (:) [New-Object], COMException
+ FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand