Link to home
Start Free TrialLog in
Avatar of zito2000
zito2000Flag for United States of America

asked on

Move IIS inetpub folder

Server OS: Windows Server 2019 Standard


I have IIS installed on my server and I took all of the defaults.  The server is not really configured, other than 2 ColdFusion IIS virtual directories.  

I basically want to move the inetpub folder from:
C:\inetpub -to-
E:\inetpub

Can someone help with a step by step guide to accomplish this?
Thank you.
ASKER CERTIFIED SOLUTION
Avatar of zc2
zc2
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zito2000

ASKER

Specify the new path in the site's "Advanced Settings..." / "Physical Path".
While this will point to the new location, it doesn't cover ALL of IIS.  It still points to the C:\Inetpub for some things.

you could just try to create a junction folder:
Thank you for the suggestion, but that's not really what I'm looking for.

I believe this is the process you are looking for:
https://social.technet.microsoft.com/Forums/en-US/7df03b2f-44fa-4cd3-b8f4-5c5e573a1295/iis-85-whats-best-way-to-move-inetpub-directory-to-another-drive?forum=winserversetup
This will move the sites and new sites, but I want to have it all pointed to the E:\ drive.  I have followed the instructions, but I can tell it's still using the old location, because I cannot rename C:\inetpub because it's being used.  That is after an IISReset, IIS Start/Stop, and a server reboot.  I also moved the Logging files as well to the E:\ drive.
This talks about what you are asking about just an older version of IIS:
https://blogs.iis.net/thomad/moving-the-iis7-inetpub-directory-to-a-different-drive
t still points to the C:\Inetpub for some things.
Such as?
Please clarify what it is you are after? Use the properties of iis you can also use meta edit adsl edit
Usually, the root is for multiple things, when creating virtual directories or additional site you can alter the home/root directory for the data of a site or virtual directory.
Note the log settings are similarly adjusted.
Thank you both.  Both of these were very helpful.
You are welcome.