Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to delete the "InetPub" folder?

Tags:

iis-7

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

I am using IIS 7.

like image 688
PositiveGuy Avatar asked Oct 23 '09 15:10

PositiveGuy


People also ask

Can I delete C :\ Inetpub logs?

These IIS log files are indeed safe to delete. Please refer to the following guide to locate and delete these log files: Navigate to C:\inetpub\logs\LogFiles\W3SVC1 and delete all of the . log files in this location.

Why do I have Inetpub folder?

Inetpub is the folder on a computer that is the default folder for Microsoft Internet Information Services (IIS). The website content and web apps are stored in the inetpub folder — which keeps it organized and secure. IIS also allows more than one domain to be served from one inetpub folder.

Can I delete Inetpub temp?

It would contain your IIS application pools. If you're not using IIS, you don't need it, so it's safe to delete (as is the whole of the inetpub folder, FWIW).

Where is the Inetpub folder?

The inetpub folder is located in the C drive and possesses 5 subfolders, which has been listed below: Adminscripts, the home of administration scripts, allows you to automate server administration tasks and remotely administer websites provided from inetpub folder.


2 Answers

IIS will create it again AFAIK.

like image 68
Galwegian Avatar answered Dec 29 '22 01:12

Galwegian


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.

like image 30
Craig Trader Avatar answered Dec 28 '22 23:12

Craig Trader