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 177847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:07:38+00:00 2026-05-11T14:07:38+00:00

I am trying to find a way to decode the REG_BINARY value for HKLM\Software\Microsoft\Ole\DefaultLaunchPermission

  • 0

I am trying to find a way to decode the REG_BINARY value for ‘HKLM\Software\Microsoft\Ole\DefaultLaunchPermission‘ to see which users have permissions by default, and if possible, a method in which I can also append other users by their username.

At work we make use of DCOM and for the most part we always give the same users permission but in some cases we are forced to accommodate our clients and add custom users/groups to suit their needs. Unfortunately the custom users we need to add are random usernames so I am unable to just add all the users and copy the value from the key like I have done with the default users we use 95% of the time.

I am currently working on a command-line executable application where I have a command to set permissions for pre-defined users but I would also like to be able to add an option to append a custom user(s) to add to the default permission along with our predefined default users list.

Currently, to set the default users list with my application I would just type:

MyTool.exe Policies

But I would like to be able to make it a bit more verbose, closer to how NET command is used for windows users, something like:

MyTool.exe Policies /ADD:’MyCustomUsername’

The problem is that the data stored in the REG_BINARY value doesn’t seem to be easily decoded. I was able to decode the hex portion in python but I am left with some sort of binary data which I don’t have a clue what to do with as I don’t even know what kind of encoding was used in the first place to know what to use to decode it. 😛

I have done quite a bit of googling but I think my lack of understanding the terminology around this topic has probably caused me to overlook the answer without recognizing it for what it is.

I guess my first real question would have to be what kind of encoding is used for the above key after it has been decoded from hex?

Or better yet, is it even possible to obtain/modify the key’s value programmatically so that I can obtain a list of the users that are currently set, and if necessary, append additional users/groups?

I would prefer to keep this application written strictly in Python if possible (or WMI/WMIC), but if necessary I can attempt to implement other types of code into my python application if it means getting the job finally done! I guess it would also be useful to mention that this application is primarily used on Windows XP Professional and most Windows Server versions so I am not worried if any possible solution will not be compatible with earlier Windows OS version(s).

Any assistance, code or just some simple help with getting familiar with this topic, would be GREATLY appreciated!

Thanks in advance for any help you can provide!! 😀

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T14:07:39+00:00Added an answer on May 11, 2026 at 2:07 pm

    Well REG_BINARY isn’t any particular format, it’s just a way to tell the registry the data is a custom binary format. So you’re right about needing to find out what’s in there.

    Also, what do you mean by converting the data from hex? Are you unpacking it? I doubt you’re interpreting it correctly until you know what has been saved in there in the first place.

    Once you find out what’s in that registry field, python’s struct module will be your best friend.

    http://docs.python.org/library/struct.html

    Further reading (you’ve probably already seen these)

    • http://msdn.microsoft.com/en-us/library/ms687317(VS.85).aspx <–windows info on perms
    • http://docs.python.org/library/_winreg.html <– python registry access
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 213k
  • Answers 213k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer That's the purpose of /usr/local according to the FHS. The… May 12, 2026 at 10:31 pm
  • Editorial Team
    Editorial Team added an answer Right Click on the Datareader source and click edit. Go… May 12, 2026 at 10:31 pm
  • Editorial Team
    Editorial Team added an answer Actually, you must have some other problem, or some other… May 12, 2026 at 10:31 pm

Related Questions

I am trying to find the best way of getting round a design flaw
I am currently scraping some data from the internet and converting into xml documents.
I'm having an issue coming up with a good way to do the following.
I am trying to copy whole directory tree from server's shared folder to my

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.