tags:

views:

5527

answers:

4

Does anyone know if deleting the InetPub folder will hurt IIS or anything related?

I am using IIS 7.

+4  A: 

If you reconfigure IIS7 to use your new location, then there's no problem. Just test that the new location is working, before deleting the old location.

Change IIS7 Inetpub path

  • Open %windir%\system32\inetsrv\config\applicationhost.config and search for

%SystemDrive%\inetpub\wwwroot

  • Change the path.
Cloud
+2  A: 

IIS will create it again AFAIK.

Galwegian
ahhh! ahh! ahhhhhhhhh!
CoffeeAddict
+3  A: 

As long as you go into the IIS configuration and change the default location from %SystemDrive%\InetPub to %SystemDrive%\www for each of the services (web, ftp) there shouldn't be any problems. Of course, you can't protect against other applications that might install stuff into that directory by default, instead of checking the configuration.

My recommendation? Don't change it -- it's not that hard to live with, and it reduces the confusion level for the next person who has to administrate the machine.

Craig Trader
A: 

it is safe to delete the inetpub it is only a cache.

xzxxx