PowerShell: Convert SDDL String to Binary Security Descriptor (Get-ACL to Set-ACL)

Posted on 2007-10-19
Last Modified: 2008-01-09
Hey guys,

I figure someone has probably done this somewhere already and I'm probably missing something simple.

I like the SDDL Output format from Get-ACL, and would like to use that format to import a Security Descriptor using Set-ACL. To do that I believe I need to convert the SDDL String back to a Security Descriptor.

There seems to be a WMI class to do exactly this, but it's only compatible with Vista and 2008, not entirely helpful at present.

Anyone know a quick way to handle that?


Question by:Chris Dent
    LVL 18

    Accepted Solution

    Get-ACL $folder
    LVL 70

    Author Comment

    by:Chris Dent

    Far too easy :)

    Thanks Brandon, that will do quite nicely.


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Learn about cloud computing and its benefits for small business owners.
    Set OWA language and time zone in Exchange for individuals, all users or per database.
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now