Hello,
I need to give the Domain Admins group Full access to a directory and all
files in the directory.  The following script runs and sets the NTFS
permissions for Domain Admins to Special (All)(Not Specified).  How do I set
full rights to both the directory and all files within the directory for the
Domain Admins group?  This is a small step within a larger Perl script that
I'm writing to automate a process.

use Win32::Perms;
$Dir = new Win32::Perms ('\\\\Servername\\sharename\\directory');
$Dir->Add( {Account=>'Domain\Domain Admins', Mask=>FULL } );
$Dir->Set();

Thanks,

Mark Story, CNE, MCSE
Operating Systems Analyst
Covenant Health

This E-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended only
for the use of the Individual(s) named above.  If you are not the intended
recipient of this E-mail, or the employee or agent responsible for
delivering it to the intended recipient, you are hereby notified that any
dissemination or copying of this E-mail is strictly prohibited.  If you have
received this E-mail in error, please immediately notify us at (865)
374-4900 or notify us by E-mail at [EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to