|
Posted by Ste on August 5, 2005, 7:52 pm
Please log in for more thread options lol
The "why???" was meant as why am i doing this ... which was answered in the
post
> Why??
>
> I think that is for you to answer.
>
> If you mean How?? You need to write a script that manipulates the ACLs, I
> would recommend start looking at the IADsSecurityDescriptor interfaces and
> mechanisms.
>
> Start here
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/iadssecuritydescriptor.asp?frame=true
>
>
> --
> Joe Richards Microsoft MVP Windows Server Directory Services
> www.joeware.net
>
>
> Ste wrote:
>> I have a windows service running under the "NT AUTHORITY\Network
>> Service", the service needs to writes files to a directory.
>> Using the security property sheet i can manually give the acct write
>> permissions on the directory - but i want to do this programatically -
>> ideally via VBScript or a Batch File.
>>
>> Why???
>>
>> I am using Visual Studio to create an installer for my service and would
>> like to invoke the VBScript/Batch file as a custom action during the
>> installation. Thus saving a manual configuration
>>
>> Thanks
>>
>>
>> Steve
|