Automating DCOMCNFG
Hi There all,
I've done extensive googling looking for a tool/script/anything to help
me do this to no avail...
What I need is a script/tool/utility that will automate the following
steps for me...
Open dcomcnfg
Go To Component Services/Computers
Right Click on My Computer, select Properties
Click on Default Com Security tab, and under "Access Permissions",
click "Edit Default"
Add a new user and close.
I know this maps to the
HKLM\Software\Microsoft\OLE\DefaultAccessPermissions Key but I can't
figure out how to add/remove to the encoded ACL in there... can anyone
help?
I need to add it as a custom action in a package I'm creating (as well as adding a new user, setting various other security settings all over the place, I've got those sorted just this one left).
Rgds
Paul
I've done extensive googling looking for a tool/script/anything to help
me do this to no avail...
What I need is a script/tool/utility that will automate the following
steps for me...
Open dcomcnfg
Go To Component Services/Computers
Right Click on My Computer, select Properties
Click on Default Com Security tab, and under "Access Permissions",
click "Edit Default"
Add a new user and close.
I know this maps to the
HKLM\Software\Microsoft\OLE\DefaultAccessPermissions Key but I can't
figure out how to add/remove to the encoded ACL in there... can anyone
help?
I need to add it as a custom action in a package I'm creating (as well as adding a new user, setting various other security settings all over the place, I've got those sorted just this one left).
Rgds
Paul
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
brenthunter2005
19 years ago
Posted by:
kkaminsk
19 years ago
Posted by:
plangton
19 years ago
Posted by:
kkaminsk
19 years ago
Posted by:
plangton
19 years ago
Posted by:
plangton
19 years ago
Posted by:
plangton
19 years ago
Wow, you can too, I searched MSDN thinking there must be a way but obviously I didn't look hard enough, thanks for that BrentHunter - though that dcomperm.exe also does the job just fine, this is much more useful!
*edit* actually, that class doesn't let you change apparently
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_dcomapplicationsetting.asp
States that all the values are read only
And the following links seem to back that up...
(http://groups.google.com.au/group/microsoft.public.win32.programmer.wmi/browse_frm/thread/6cddf9ba463ac5/598ba01fa2cd22ba?lnk=st&q=Win32_DCOMApplicationSetting&rnum=1&hl=en#598ba01fa2cd22ba
http://groups.google.com.au/group/microsoft.public.win32.programmer.wmi/browse_frm/thread/c76db86d2d1dabae/0a3e0c9711b7063a?lnk=st&q=Win32_DCOMApplicationSetting&rnum=5&hl=en#0a3e0c9711b7063a
Looks like you can only echo whats already there... bummer
Unless I've read this wrong?
Rgds
Paul
*edit* actually, that class doesn't let you change apparently
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_dcomapplicationsetting.asp
States that all the values are read only
And the following links seem to back that up...
(http://groups.google.com.au/group/microsoft.public.win32.programmer.wmi/browse_frm/thread/6cddf9ba463ac5/598ba01fa2cd22ba?lnk=st&q=Win32_DCOMApplicationSetting&rnum=1&hl=en#598ba01fa2cd22ba
http://groups.google.com.au/group/microsoft.public.win32.programmer.wmi/browse_frm/thread/c76db86d2d1dabae/0a3e0c9711b7063a?lnk=st&q=Win32_DCOMApplicationSetting&rnum=5&hl=en#0a3e0c9711b7063a
Looks like you can only echo whats already there... bummer
Unless I've read this wrong?
Rgds
Paul
Posted by:
AngelD
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.