dcom

DCOM Security using a batch file

这一生的挚爱 提交于 2019-12-10 11:19:30
问题 Are there any methods to change the Access Permissions for COM Security using a batch file? I need to write new values to "Edit Limits..." and "Edit Default..." in both "Access Permissions" and "Launch and Activation Permissions" using a batch script. I'm using Windows XP machines with Service Pack 2 and 3. Thank you. 回答1: I recently had the need to create a batch script to grant default Local Activation permissions so that I could run an out-of-process COM component on Windows Azure. After

What do the different DCOM / COM security settings mean?

你离开我真会死。 提交于 2019-12-08 23:45:00
问题 Our application uses COM and DCOM extensively, and so as part of that we need to ensure that the COM security permissions are correctly set up. I know that I can access these permissions under the Component Services MMC snap in and that I can set the defaults / limits under the property pages for the Computer And that under the DCOM Config node I can drill down and set securty permissions for individual applications I also understand the relationship between the "Defaults" (what DCOM

How to call a remote bat file using jinterop

孤者浪人 提交于 2019-12-08 14:11:27
GlassFish Application Server uses a script, asadmin.bat, that in turns starts a JVM. I'd like to call this script using jinterop and DCOM from Java on a remote machine. I can't find any help on this specific usage. Any help would be greatly appreciated. Björn I use the Windows Scripting Host Shell to execute some program or batch on a remote computer. The code looks like: // Create a session JISession session = JISession.createSession(<domain>, <user>, <password>); session.useSessionSecurity(true); // Execute command JIComServer comStub = new JIComServer(JIProgId.valueOf("WScript.Shell"),<IP>,

How to call a remote bat file using jinterop

蹲街弑〆低调 提交于 2019-12-08 04:40:44
问题 GlassFish Application Server uses a script, asadmin.bat, that in turns starts a JVM. I'd like to call this script using jinterop and DCOM from Java on a remote machine. I can't find any help on this specific usage. Any help would be greatly appreciated. 回答1: I use the Windows Scripting Host Shell to execute some program or batch on a remote computer. The code looks like: // Create a session JISession session = JISession.createSession(<domain>, <user>, <password>); session.useSessionSecurity

Need to remove an Object from DCOM config (DCOMCNFG)

核能气质少年 提交于 2019-12-08 01:41:01
问题 We have an application with activex exe and a com dll. After installing we get an object created in DCOM config. If we try to delete this object from DCOM config, it goes off till we again reopen it. Want to know if there's any procedure to delete this object completely from DCOM and its registries. 回答1: No idea why this would be tagged VB.Net, but... You can remove most of the server's registration entries by running the EXE with a command line switch as in: MyAx.EXE /unregserver However

How can I supress Delphi DataSnap error message dialogs?

夙愿已清 提交于 2019-12-07 05:46:41
问题 We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not connect to the server application and displays a message dialog on the server desktop indicating for example "Could not connect to server. Network path could not be found." or "Objectexporter not found." Our Delphi client code never uses a message

DCOM Security using a batch file

回眸只為那壹抹淺笑 提交于 2019-12-06 12:21:01
Are there any methods to change the Access Permissions for COM Security using a batch file? I need to write new values to "Edit Limits..." and "Edit Default..." in both "Access Permissions" and "Launch and Activation Permissions" using a batch script. I'm using Windows XP machines with Service Pack 2 and 3. Thank you. I recently had the need to create a batch script to grant default Local Activation permissions so that I could run an out-of-process COM component on Windows Azure. After much research, I used a tool called RegFromApp (download link is near bottom of page) to see what changes

How to call a DCOM object from C#?

为君一笑 提交于 2019-12-06 11:34:54
问题 I have a CLSID and I need to instantiate this in a Different server (i.e. DCS ) where as my working machine is (i.e. MWS ). Now, if I use following : var type = Type.GetTypeFromCLSID(new Guid(CLSID), Environment.MachineName, true); var COMObject = Activator.CreateInstance(type); var returnValue = COMObject.GetType().InvokeMember(methodName, flags, null, COMObject, args, argModifiers, null, null); Then I get "COM target does not implement IDispatch" error. Ok, I understand that probably the

Need to remove an Object from DCOM config (DCOMCNFG)

情到浓时终转凉″ 提交于 2019-12-06 10:37:45
We have an application with activex exe and a com dll. After installing we get an object created in DCOM config. If we try to delete this object from DCOM config, it goes off till we again reopen it. Want to know if there's any procedure to delete this object completely from DCOM and its registries. No idea why this would be tagged VB.Net, but... You can remove most of the server's registration entries by running the EXE with a command line switch as in: MyAx.EXE /unregserver However this leaves a system-synthesized entry under HKCR\AppID after first use. As far as I know you must manually

How exactly do I config DCOM to load my DLL into a separate process?

∥☆過路亽.° 提交于 2019-12-06 08:47:50
问题 I'm trying to force an existing native C++ ATL in-proc COM server into a separate process. I hope DCOM can do this for me without changing the COM server. I started with a usual registry setup - I have a HKCR\CLSID{classId} entry and an InProcServer32 key there specifying the path to the .dll file. I generated an application id (GUID) and added it here and there. Specifically I added a string value "AppId" under HKCR\CLSID{classId} equal to the application id. I also added a HKCR\AppId