CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Location
    In the back seat of New Horizons.
    Posts
    1,238

    Manipulating windows ACL with PowerShell

    Hey guys, long time no post, since like 2009

    Anyways, here's my question. Sorry if this is the wrong forum, I had no idea where else to post it.

    I have a file full of last-names separated by commas and then first-names.
    Smith,Bob
    Chicken,Ronald
    Car,Anastasia

    Code:
    gc permissions.csv|% {$_.split(",")[0]}
    I'd like to grab the first character of the first name and then pre-pend it to the string of the last name. The general idea is to find the user ID that's stored in Active Directory, in my company it's the first letter of the first name and then the last name.

    Then I'm trying to add these users as read-only on a specific directory. Thoughts?
    Here are the rules, you must obey them or the gender bender will get you.

    And if you ever think of posting without code-tags, the evil monkey will come after you.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Manipulating windows ACL with PowerShell

    Do you have the AD plug-in? It makes it easier
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Apr 2004
    Location
    In the back seat of New Horizons.
    Posts
    1,238

    Re: Manipulating windows ACL with PowerShell

    Quote Originally Posted by dglienna View Post
    Do you have the AD plug-in? It makes it easier
    What is that?
    Here are the rules, you must obey them or the gender bender will get you.

    And if you ever think of posting without code-tags, the evil monkey will come after you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured