Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 16 Apr 2008 18:25:54 +0200,    group: microsoft.public.platformsdk.com_ole        back       


How to set DCOM access/launch rights programatically ?   
Hi.
I'm just trying to figure out how to set access/launch rights 
programatically for my DCOM object.
My situation is :
I'm have two accounts in my Vista - admin and user accounts.
In admin account i'm installing apps and user account is mostly used 
account i have.
If i'll install my app in admin account, DCOM server have no rights 
for my user account so i can use my app only from admin account. I 
know how to set rights using dcomcnfg application, but i prefer set 
this rights programatically (but i don't need to implement any rights 
elevation if it's not neccessary).
Regards,
Petr Jurik.
date: Wed, 16 Apr 2008 18:25:54 +0200   author:   Petr Jurik

Re: How to set DCOM access/launch rights programatically ?   
Hi

> My situation is :
> I'm have two accounts in my Vista - admin and user accounts.

A man with a brain!

> In admin account i'm installing apps and user account is mostly used 
> account i have.

Excellent!

> If i'll install my app in admin account, DCOM server have no rights 
> for my user account so i can use my app only from admin account.

You should be able to install the app "per-machine" instead of per-user, 
then it will work for all users.

 > I
> know how to set rights using dcomcnfg application, but i prefer set 
> this rights programatically (but i don't need to implement any rights 
> elevation if it's not neccessary).

One problem you'll run into on Vista, is that many built-in registry 
keys are NOT available for write access by the Administrators group. 
Instead they're owned by "Trusted Installer".

The good news, is that on Vista, it's possible to manipulate registry 
permissions with WMI (I think anyway).

-- 
Gerry Hickman (London UK)
date: Sat, 19 Apr 2008 21:27:07 +0100   author:   Gerry Hickman am

Re: How to set DCOM access/launch rights programatically ?   
"Petr Jurik"  wrote in message news:uAL5O69nIHA.4832@TK2MSFTNGP02.phx.gbl...
> Hi.
> I'm just trying to figure out how to set access/launch rights
> programatically for my DCOM object.
> My situation is :
> I'm have two accounts in my Vista - admin and user accounts.
> In admin account i'm installing apps and user account is mostly used
> account i have.
> If i'll install my app in admin account, DCOM server have no rights
> for my user account so i can use my app only from admin account. I
> know how to set rights using dcomcnfg application, but i prefer set
> this rights programatically (but i don't need to implement any rights
> elevation if it's not neccessary).
> Regards,
> Petr Jurik.

http://support.microsoft.com/kb/206484

If you can't get the source for DCOMPERM send me an email at bri a n mu th a t hot mai ldo tcom. I think it has been removed from 
the Microsoft web site.
date: Tue, 22 Apr 2008 11:58:59 -0700   author:   Brian Muth

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us