Questions tagged [com-object]

39 questions
1
vote
0 answers

Using powershell to create a PDF

I am working on a script to create a PDF from PowerShell. I have it working using Word, using the ComObject. But that means that computer I run it on has to have Word. I was wandering if there was a way to make a PDF file from notepad maybe. This is…
1
vote
3 answers

Unable to run the below command

I am trying to run below object but I am getting an error. $fr = New-Object -ComObject firefox.Application I am getting below error. retrieving the com class factory for component with clsid But I successed with below command $fr = New-Object…
DKU
  • 77
  • 1
  • 7
1
vote
0 answers

Error when trying to create a server object in Classic ASP

The .dll is ASPCache_x64.dll, in C:\Windows\System32 (I know; this decision was made before my time.) The server is a Windows Server 2008 R2 VirtualBox VM with IIS 7.5, on a host running Windows 7. The website in question is a classic ASP site…
Mouse
  • 31
  • 5
1
vote
1 answer

powershell com internetexplorer catch popup window

I'm trying to use powershell to automate and parse a website. Everything works great until I "click" on a link and it opens in a new window. How can I access that window so I can parse it? $ie = New-Object -com Internetexplorer.application…
1
vote
1 answer

Missing properties in VS2015 Debug

Why can't I see properties of a COM object in debug mode in Visual Studio 2015. It works fine in VS2012. It's the same project so it should show the same?? Visual Studio 2012 (works fine) Visual Studio 2015 (properties gone)
1
vote
0 answers

Launch IE with a switch from a COM object (PowerShell)

I need to do two things. One is to launch IE hidden until I've locked down certain elements such as hiding the address bar and the second is to launch it with the -noframemerging switch. This is help with delivering web related App-V packages in a…
1
vote
1 answer

Using a managed COM object in C++

I've followed a number of detailed tutorials on how to use a COM object in C++. I'm using VS 2010 pro. I made a new solution called TestComInterop. Made a C# project called TestMath. Made it com visible by selecting the option in…
Robert Snyder
  • 2,399
  • 4
  • 33
  • 65
0
votes
1 answer

How does powershell process return types/objects from an externally loaded DLL?

I am a novice programmer in .NET and Powershell, I have a small compiled .NET DLL that utilizes the Directory Services and TSUserExLib for fetching TerminalService attributes. The DLL has a one static function that returns "IADsTSUserEx". I tested…
0
votes
1 answer

Skype for Business shell commands from code

I've developed an application that manages Skype For Business users configurations. One of the operations I need to run should set Skype user's registrar pool, using this command: Move-CsUser -Identity [UserName] -Target [RegistrarPool]…
Tali B.
  • 125
  • 1
  • 11
0
votes
0 answers

Using SaveAs on a Word object from PowerShell fails with [ref] argument error

I'm using Word to convert a docx to PDF from PowerShell by opening the document and writing it by using SaveAs(). My code: # got that hint from…
0
votes
0 answers

System.__ComObject in LotusNotes in VB.net when extracting Attachments

I want to access a Lotus Notes Database and get attachments from documents in it. I can open the DB and doc and loop through all items. The problem is, I can not use the items as NotesRichTextItem and therefore not check if there are any…
user49017
  • 25
  • 9
0
votes
1 answer

Outlook Appointment Reply instead of Respond through C#

I wanted to reply all to an output appointment instead of respond through c# code. I am able to iterate through all the appointments of today but in .net 3.5 I could not find an option to Reply All to the appointment. The only option available is…
Mayur Jadhav
  • 125
  • 12
0
votes
1 answer

Listing available COM Objects with Powershell

I am currently using the following script to list the available COM Objects on my machine. $path = "REGISTRY::HKEY_CLASSES_ROOT\CLSID\*\PROGID" foreach ($obj in dir $path) { write-host $obj.GetValue("") } I read on another website that the…
outtacontrol
  • 1
  • 1
  • 1
0
votes
0 answers

Moving from an ATL COM dll to a C++/CLI dll wrapper.

I'm working to create a C++/CLI dll from an ATL COM object dll. Is this type of move possible, and what would need to be done to migrate the classes from the ATL com object to the C++/CLI dll wrapper.
Sdd38
  • 1
0
votes
2 answers

Compact & Repair Access 2007 Database with Powershell

I'm trying to use Powershell V2.0 to programatically compact and repair MS Access 2007 (.accdb) databases. The code I've created below works as part of the final code (several backup procedures occur prior to this function running). I'm running into…