Categories
Archive
![]() Blogroll
|
Creating IIS7.5 Web Site Root Directories with a Function on Powershell
Posted in Hosting & IIS7, Windows Powershell, Windows Server | No Comment | 1,102 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!
Tags: auto web site directories powershell, creating directory with powershell, iis7.5 auto web site powershell, iis7.5 web site directories powershell
Leave a Reply
|