Script help needed again! (NTFS permissions if folder exists) :(
Agh! Can never seem to find the time to sit down and learn these things. Only one on the helpdesk today and need something sorted as soon as I can ideally.
Have my cap in hand, as usual extremely grateful to anyone who can help me out.
I need a vbs script (or batch file) to run on machines at startup (set through GP) to look for a folder in Program Files on all my client machines and if a certain folder is there, to set an AD group to Deny all.
For example, if the folder c:\Program Files\ferrets is found on a client computer, I'd like the permissions of c:\Program Files\ferrets and all subfolders and files to be set to Deny all for the group mydomain/students.
Anyone feeling helpful and can spoonfeed me this one?
Huge thanks for reading.
And no there's no ferrets loose. Well if there are they're not in the helpdesk.