search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Hosting & IIS7, Windows Powershell, Windows Server | No Comment | 2,532 views | 27/02/2010 15:57

You can create default web site directories with a function on Powershell:

Function Create-Directories
{
Param ($LogDir)
 
New-Item "$LogDir" -Type Directory
New-Item "$LogDir\db" -Type Directory
New-Item "$LogDir\http" -Type Directory
New-Item "$LogDir\http\bin" -Type Directory
New-Item "$LogDir\http\stats" -Type Directory
New-Item "$LogDir\http\upload" -Type Directory
}

You can execute our function using with this command:

Create-Directories -LogDir "C:\inetpub"

Have fun!