"Mick Walker" <ma**********@p rivacy.netwrote in message
news:5o******** ****@mid.indivi dual.net...
I wish to be able create a folder on any computer within the current
Active Directory Domain.
I am controling IIS using the Microsoft.Web.A dministration.
We are using windows 2008 build 6001
I can create the nessesary items within IIS, websites, Virtual Folders,
set permissions etc. All I need now is a way to create the physical path
to correspond to the properties I am setting.
ASP.Net is running with suitable permissions to impersonate a user that
has permission to create folders on the target machines (Web Servers).
Creating folders server-side should be no problem so long as ASP.NET can see
the drives on which you want to create the folders...
If I cant do it via DirectoryServic es, I think I shall have to go down the
path (No not a file system path :-P) of having a WebService running on
each of the Web Server in the AD domain, that will be able to create the
file structures needed, However I would like to use Directory Services to
avoid the potential security risks of the latter method.
There simply is no way to persuade DirectoryServic es to create folders -
it's just not what it's for...
What errors do you get if you do something like:
DirectoryInfo di = Directory.Creat eDirectory("\\S erverName\\c$\\ Test");
--
Mark Rae
ASP.NET MVP
http://www.markrae.net