views:

42

answers:

1

Hi i created and deleted the virtual directory its working fine but need to modify name , port Path plz help me

A: 

Note this will only work on Windows 7 or Win2k8R2

Import-Module webadministration

That will import all the commands required to modify IIS websites , at this point you have 2 options , you can make the changes my navigating to IIS:\ and using set-Item etc or you can call

 (Get-Website)

Which will list all your websites on the server , you can either index them manually to change the settings i.e (Get-Website)[0] will allow you to change the settings of the first site. Use (Get-Website) | Get-Member to get more details about the list of commands you can use.

RC1140

related questions