com-object

Is it possible to duplicate the following credential process in VB.NET?

Solution (kinda): Turns out this impersonation with .NET's security only allows application-level access. Since the COM object is at the system level, the impersonated user still cannot instantiate it. I figured this out by right-clicking the executable and selecting "Run As...", the program functioned fine. I found out that launches t...

Detecting and dynamicly loading the installed Microsoft Word Object Library

A little back story: I have small application that will use Word to generate a Outlook signature based on a Word template and data from the company active directory. It works wonderful on computers with Office 2007, since I used "Microsoft Word 12.0 Object Library" when I coded it on my own computer. There are quite a few computers on t...

Conversion from type 'String' to type 'String' is not valid

Hi, I'm in the process of porting an old excel addin that was writen in VBA to VB .NET. The Excel addin interacts with a number of external com objects. The code sorta looks like this: Dim hurr as Object Dim durr as String hurr = CreateObject("COM Object") durr = hurr.getString What I'm trying to do is read the string from the COM o...

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 existence of the InProcServer32 key is evidence that the object is 64 bit compatible. So u...

PowerShell, Open IE without Add-ons

I want to open the Internet Explorer as a new Com Object with no Add-ons. $ie=New-Object -comobject InternetExplorer.Application How could I start the Internet Explorer without Add-ons? ...