|
-
December 12th, 2011, 01:38 PM
#1
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?
-
December 12th, 2011, 03:47 PM
#2
Re: Manipulating windows ACL with PowerShell
Do you have the AD plug-in? It makes it easier
-
December 12th, 2011, 03:49 PM
#3
Re: Manipulating windows ACL with PowerShell
 Originally Posted by dglienna
Do you have the AD plug-in? It makes it easier
What is that?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|