bishopsgarthstockton Posted April 17, 2007 Posted April 17, 2007 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
GrumbleDook Posted April 17, 2007 Posted April 17, 2007 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.
ChrisH Posted April 17, 2007 Posted April 17, 2007 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 .
ajbritton Posted April 17, 2007 Posted April 17, 2007 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.
bishopsgarthstockton Posted April 17, 2007 Author Posted April 17, 2007 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. :oops: 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 cheerspermission_script.txt
plexer Posted April 17, 2007 Posted April 17, 2007 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
tosca925 Posted April 17, 2007 Posted April 17, 2007 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?
Ric_ Posted April 17, 2007 Posted April 17, 2007 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.
lilsfroggy Posted April 18, 2007 Posted April 18, 2007 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"
ChrisH Posted April 18, 2007 Posted April 18, 2007 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 ? :?
lilsfroggy Posted April 19, 2007 Posted April 19, 2007 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now