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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:11:55+00:00 2026-05-27T10:11:55+00:00

Here is my dilemma. We have a server with a path, say \server1\data$\foo\bar\stuff. I’m

  • 0

Here is my dilemma. We have a server with a path, say \server1\data$\foo\bar\stuff. I’m using Windows 2005 Server for this. Now, for \stuff, I’d like to add something like 150 users that I have in a CSV file (can get it from Excel).

I can parse the CSV file rather easily (most languages have libraries for this), but I don’t know anything about Windows permissions (used Linux for quite a bit of my career prior).

Can I do this in PHP?

  • 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-05-27T10:11:56+00:00Added an answer on May 27, 2026 at 10:11 am

    You can do this from the command line via active directory commands through DOS or Powershell. I list some references and examples from references below.

    I would suggest adding these users to a group. This example adds a user to a group:

    dsmod group "CN=csvpeeps,OU=Distribution Lists,DC=Contoso,DC=Com"  -addmbr "CN=jimmyCrackedCorn,CN=Users,DC=Contoso,DC=Com"  
    

    Reference: http://technet.microsoft.com/en-us/library/cc732423(WS.10).aspx
    To create a group, see the dsadd command. Example of creating a group:

    dsadd group cn=csvpeeps,cn=users,dc=northwindtraders,dc=com
    

    One option on Windows, through DOS is Cacls, iCacls, and other variants. This example adds Read permissions to a resource for the group, ‘Power Users’:

    CACLS \server1\data$\foo\bar\stuff. /E /G "csvpeeps":R
    

    Reference: http://ss64.com/nt/cacls.html

    I have read that CACLS can be buggy, so you may want to look into another variant of CACLS. I highly recommend http://ss64.com

    If you don’t know the exact OU/CN, etc for users or groups, you can check it out with something like this:

    dsquery user -name jimmyCrackedCorn
    

    Similarly for groups

    dsquery group -name csvpeeps
    

    Let me know if you get stuck and I can put more effort into this. Powershell is another option worth looking into.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my dilemma: The Problem I have SubProgram (a DLL) that uses System.Data.SQLite
Here is my dilemma: I really like lambda and have been using Boost.Fusion and
I have a dilemma. Here is my set-up: ASP.NET/NET 3.5 web application build using
Ok, here is my dilemma I have a database set up with about 5
Here's my dilemma: I have to RGBA RAW images: a master image (the first)
Here's my dilemma: I have two types of routes which are semantically very different,
I have a dilemma going on here. I need to use a session to
Here is my dilemma, I am working on some SaaS using ASP.net MVC3 and
Here is my dilemma... I basically have a script which by means of CURL
So here is my dilemma, I have a navigation controller that controls three views.

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.