Change folder access rights on remote computers

Discussion in 'Windows Server' started by Marcus, Nov 26, 2004.

  1. Marcus

    Marcus Guest

    For security reason I changed on all (200) computers in the computer lab
    rgts on "C" disk. Only System have full rigt and everyone have read
    rights. I want create one folder on all computers now and I have
    problems. I took ownership of c drive using takeown but I need to give
    write rights to myself on all computers. Hot to do this from the script?

    It is working on subfolders of C drive
    cacls \\computer123\C$\temp /t /e /c /g admin:f


    But how to changerights on C drive?


    Markus
     
    Marcus, Nov 26, 2004
    #1
    1. Advertisements

  2. Marcus

    Todd J Heron Guest

    You can use PSExec to go out to each machine and run what appears to be a
    local script to the system to push down the permissions using cacls. AFAIK,
    cacls must be run in a local context, not over a network.
     
    Todd J Heron, Nov 26, 2004
    #2
    1. Advertisements

  3. Marcus

    Marcus Guest

    Not true I am running for 4 years cacl via network and not local
    I am using the batch file like:
    cacls \\computer123\C$\temp /t /e /c /g admin:f

    The only problem that is working on folders files etc but not on C, D drives

    Marcus
     
    Marcus, Nov 26, 2004
    #3
  4. Marcus

    Todd J Heron Guest

    Thanks for the update on that. Have you tried this mapping a drive to the
    remote computer first, and then running cacls? You can map, run cacls, then
    un-map to each computer moving on to the next computer in a given list via a
    script.
     
    Todd J Heron, Nov 26, 2004
    #4
  5. Marcus

    Marcus Guest

    Yes C disk is shared as a standard administrative share ("C$"), but as I
    told before it is not working on the disk itself but on all subfolders.

    This will work
    cacls \\computer123\C$\temp /t /e /c /g admin:f

    but
    cacls \\computer123\C$ /t /e /c /g admin:f

    is not working


    Any sugestion?
    Marcus
     
    Marcus, Nov 26, 2004
    #5
  6. Marcus

    Todd J Heron Guest

    Try xcacls from Resource Kit instead and let us know the result.
     
    Todd J Heron, Nov 26, 2004
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.