+ Post New Thread
Results 1 to 11 of 11
Windows Thread, xcacls in Technical; Hi, i need to change folder permissions on 90 computers and i would like to do it remotely using a ...
  1. #1

    Join Date
    Nov 2006
    Posts
    547
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    xcacls

    Hi, i need to change folder permissions on 90 computers and i would like to do it remotely using a bat file.

    is this possible? the current folders on the remote machines are not shared.

    so far i have managed to create a bat file to run a machine it self.

    any ideas much apreciated

  2. #2

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,935
    Thank Post
    1,341
    Thanked 1,784 Times in 1,107 Posts
    Blog Entries
    19
    Rep Power
    595

    Re: xcacls

    They should still be available to change via the admin share of c$

    \\computername\c$\folder\subfolder ....

    As long as you are running it as someone with admin level permissions then it should be fine.

  3. #3
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: xcacls

    Start up script assuming they are part of a domain etc? I do this for awkward ini files etc that stick themselves in forbidden places .

  4. #4
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: xcacls

    You can also do this directly using Group Policy

    Computer Configuration \ Windows Settings \ Security Settings \ File System

    Right click and select Add File

    Browse to the file/folder you want to change (best to do this from a PC where the file/folder actually exists!) OK

    Make permissions changes as required.

  5. #5

    Join Date
    Nov 2006
    Posts
    547
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: xcacls

    I have attached part of the script for one computer.

    problem with this is i need to modify 90 computers that all have the same folders that i wish apply the permission updates too

    I've tried using a wildcard for the computer names i.e. cr1-* rather than cr1-01, cr1-02.....etc

    but the wild card seems to not have any affect.

    ops:

    is the any way i can tidy it up or is what i've done the best it can be?

    never used xcacls so its been a tiny learning curve for me

    cheers
    Attached Files Attached Files

  6. #6

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,611
    Thank Post
    647
    Thanked 1,616 Times in 1,446 Posts
    Rep Power
    421

    Re: xcacls

    You could use the for statement.

    You create a text file containing computer names and then reference that i.e

    for /f "tokens=1" %%i in (06.txt) do call f:\command_goes_here

    Ben

  7. #7
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    Re: xcacls

    Are the computers in OU's? Can't you just Create a GPO like AJB said and link it to the relevant OU's that contain the computers?

  8. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,596
    Thank Post
    109
    Thanked 764 Times in 595 Posts
    Rep Power
    181

    Re: xcacls

    I have a folder that must keep specific permissions... I run XCACLS (which is a VBScript anyway) as a startup script with the relevant switches and arguments.

  9. #9

    Join Date
    Apr 2007
    Location
    out of isle
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: xcacls

    Hi bishopsgarden

    btw, why u need to work more then 37 Hours in school? i only know that u only work 4 days at week and why u dont ask ur collega ? it needed on 30 maths pcs and not on 90ITpcs that was a job from last year, wasnt it??

    greatings from outside the isle a lil girl what works 1 day)week in a course



    signature: "never be a pinoccio"

  10. #10
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: xcacls

    Quote Originally Posted by lilsfroggy
    Hi bishopsgarden

    btw, why u need to work more then 37 Hours in school? i only know that u only work 4 days at week and why u dont ask ur collega ? it needed on 30 maths pcs and not on 90ITpcs that was a job from last year, wasnt it??

    greatings from outside the isle a lil girl what works 1 day)week in a course



    signature: "never be a pinoccio"
    Huh ? :?

  11. #11

    Join Date
    Apr 2007
    Location
    out of isle
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: xcacls

    Hi, ok

    ah i just readed bishops comments here and in other topics and i only know that the job was to do for 30 maths pcs, the job bout 90ITpcs was a job from last year

    (..and if i would have pupils who need to be 1xweekly since 4 month in my lessons and i would see they only 3x in 4 month then i would find this comments/questions here normal)

    my signature "never be a pinoccio" = pinoccio have a long noise and my pupils get it if they lie ( here outside the isle)

    BB lilsfroggy

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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