Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8233229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:03:51+00:00 2026-06-07T18:03:51+00:00

I have been given the task of writing Powershell scripts to set up a

  • 0

I have been given the task of writing Powershell scripts to set up a server from scratch to run one of our services as part of a web application, and one of the steps required for setting this server up is changing the DCOM config for the installed service, specifically adding accounts to the “Launch and Activation”/”Access” Permissions and also set the permissions for these accounts once they have been added.

Is there a method of doing this using Powershell at all? I haven’t been able to find a concrete method of doing what I’m aiming to achieve so any help would be great

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:03:52+00:00Added an answer on June 7, 2026 at 6:03 pm

    Looks like you would do it using WMI.

    Get an instance of: Win32_DCOMApplicationSetting like this:

    $dcom = Get-WMIObject -Class Win32_DCOMApplicationSetting -Filter 'Description="Something"'
    

    Now you have access to the SetAccessSecurityDescriptor and SetLaunchSecurityDescriptor methods.

    From: http://msdn.microsoft.com/en-us/library/windows/desktop/aa384905(v=vs.85).aspx

    DCOM applications

    DCOM application instances have several security descriptors. Starting
    with Windows Vista, use methods of the Win32_DCOMApplicationSetting
    class to get or change the various security descriptors. Security
    descriptors are returned as instances of the Win32_SecurityDescriptor
    class.

    To get or change the configuration permissions, call the
    GetConfigurationSecurityDescriptor or
    SetConfigurationSecurityDescriptor methods.

    To get or change the access permissions, call the
    GetAccessSecurityDescriptor or SetAccessSecurityDescriptor methods.

    To get or change the startup and activation permissions, call the
    GetLaunchSecurityDescriptor or SetLaunchSecurityDescriptor methods.

    Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and
    Windows Me/98/95: The Win32_DCOMApplicationSetting security
    descriptor methods are not available.

    There’s also a tool called DCOMPERM in which source code is available in the Windows SDK: http://www.microsoft.com/en-us/download/details.aspx?id=8279

    You can find compiled versions around online if you search for DCOMPERM compiled.

    Here are the command line options:

    Syntax: dcomperm <option> [...] 
    Options:
    
    Modify or list the machine access permission list 
    -ma <"set" or "remove"> <Principal Name> ["permit" or "deny"] ["level:l,r"] 
    -ma list
    
    Modify or list the machine launch permission list 
    -ml <"set" or "remove"> <Principal Name> ["permit" or "deny"] ["level:l,r,ll,la,rl,ra"] 
    -ml list
    
    Modify or list the default access permission list 
    -da <"set" or "remove"> <Principal Name> ["permit" or "deny"] ["level:l,r"] 
    -da list
    
    Modify or list the default launch permission list 
    -dl <"set" or "remove"> <Principal Name> ["permit" or "deny"] ["level:l,r,ll,la,rl,ra"] 
    -dl list
    
    Modify or list the access permission list for a specific AppID 
    -aa <AppID> <"set" or "remove"> <Principal Name> ["permit" or "deny"] ["level:l,r"] 
    -aa <AppID> default 
    -aa <AppID> list
    
    Modify or list the launch permission list for a specific AppID 
    -al <AppID> <"set" or "remove"> <Principal Name> ["permit" or "deny"] ["level:l,r,ll,la,rl,ra"] 
    -al <AppID> default 
    -al <AppID> list
    
    level: 
        ll - local launch (only applies to {ml, dl, al} options) 
        rl - remote launch (only applies to {ml, dl, al} options) 
        la - local activate (only applies to {ml, dl, al} options) 
        ra - remote activate (only applies to {ml, dl, al} options) 
        l - local (local access - means launch and activate when used with {ml, dl, al} options) 
        r - remote (remote access - means launch and activate when used with {ml, dl, al} options)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been given the task at work of screen scraping one of our
I have been given the task of re-writing some libraries written in C# so
I have been given the painful task of writing a C# application to sync
I have been given the task of bringing three legacy systems together into one
I have been given the task of running two threads one using extends and
I have been given to the task of writing a coding standards document and
I have been given the task of internationalizing a large client-server application. The remit
I have been given the task of adding functionality to an existing IIS 6.0
I have been given the task to design a database to store a lot
I have been given the task of devising a custom forms manager that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.