[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 928
  • Last Modified:

How to change settings for 2 DCOM objects via script

I work with a piece of software that installs two DCOM objects into DCOM config under component services.  Part of out installation requires that we manually

1.  Set the general authentication level to none.
2.  Add the 'Anonymous' and 'Everyone' group to have 'full access' for 'launch and activation permissions' along with full  rights for 'access permissions'
3.  Under the identity tab, set a particular user to run the application.

The easy answer would be to have this added to the install shield but I can't get this done.

As the groups are generic I would have thought this could be automated.  Can someone show me a script or point me in the direction of a script which can do this for me?

Thanks in advance.

Ben
0
benowens
Asked:
benowens
1 Solution
 
KenneniahCommented:
All those permissions etc. are stored in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\XXXXXX
Therefore exporting a reg file after settings permissions then importing it on the target machines should work. The only problem though is while it does add a RunAs section with the user, it doesn't store the password there.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now