Forum Discussion
Move Sharepoint on-premise from default installation location to non system drive
Hi,
we've installed a on-premise Sharepoint 2016 on the default c:/ location. Because of IIS Hardening issue we've to move the webcontent/iis configuration to a non system drive.
1. Is it at all possible to change the Sharepoint installation afterwards to another drive?
2. Is it possible to only change the IIS specific sites/configuration to another drive without touching or reinstalling the whole Sharepoint again? Here the Hardening scanner info: Found web content on system partition. Found: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\WebServices\Root C:\inetpub\wwwroot\wss\VirtualDirectories\33030 C:\inetpub\wwwroot\wss\VirtualDirectories\xxx.
Thanks
Hi olkipolki
Yes, it is possible to change the Sharepoint installation afterwards to another drive. However, it is a complex process and should not be attempted without careful planning and testing.
Yes, it is possible to only change the IIS specific sites/configuration to another drive without touching or reinstalling the whole Sharepoint again. However, this is also a complex process and should not be attempted without careful planning and testing.
Here are some general (example) steps on how to move Sharepoint on-premise from default installation location to non system drive:
Step 1: Back up your Sharepoint environment. This is the most important step, as you will be able to restore your environment if something goes wrong. There are many different ways to back up Sharepoint, so choose a method that works best for you.
Step 2: Stop all Sharepoint services. Once you have backed up your environment, you need to stop all Sharepoint services. This can be done through the Sharepoint Central Administration website.
Step 3: Move the Sharepoint installation directory. Once all Sharepoint services have been stopped, you can move the Sharepoint installation directory to the new location. Be sure to move all subdirectories and files.
Step 4: Update the registry. Once the Sharepoint installation directory has been moved, you need to update the registry. This can be done using the SharePoint Product Configuration Wizard.
Step 5: Configure IIS. Once the registry has been updated, you need to configure IIS. This can be done using the IIS Manager. You will need to create a new website for each Sharepoint web application.
Step 6: Start all Sharepoint services. Once IIS has been configured, you can start all Sharepoint services.
Step 7: Test your Sharepoint environment. Once all Sharepoint services have been started, you need to test your Sharepoint environment to make sure that everything is working properly.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
- LeonPavesicSilver Contributor
Hi olkipolki
Yes, it is possible to change the Sharepoint installation afterwards to another drive. However, it is a complex process and should not be attempted without careful planning and testing.
Yes, it is possible to only change the IIS specific sites/configuration to another drive without touching or reinstalling the whole Sharepoint again. However, this is also a complex process and should not be attempted without careful planning and testing.
Here are some general (example) steps on how to move Sharepoint on-premise from default installation location to non system drive:
Step 1: Back up your Sharepoint environment. This is the most important step, as you will be able to restore your environment if something goes wrong. There are many different ways to back up Sharepoint, so choose a method that works best for you.
Step 2: Stop all Sharepoint services. Once you have backed up your environment, you need to stop all Sharepoint services. This can be done through the Sharepoint Central Administration website.
Step 3: Move the Sharepoint installation directory. Once all Sharepoint services have been stopped, you can move the Sharepoint installation directory to the new location. Be sure to move all subdirectories and files.
Step 4: Update the registry. Once the Sharepoint installation directory has been moved, you need to update the registry. This can be done using the SharePoint Product Configuration Wizard.
Step 5: Configure IIS. Once the registry has been updated, you need to configure IIS. This can be done using the IIS Manager. You will need to create a new website for each Sharepoint web application.
Step 6: Start all Sharepoint services. Once IIS has been configured, you can start all Sharepoint services.
Step 7: Test your Sharepoint environment. Once all Sharepoint services have been started, you need to test your Sharepoint environment to make sure that everything is working properly.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)- olkipolkiCopper Contributor
LeonPavesic Thank you!
- olkipolkiCopper Contributor
Would you describe what steps are needed to move only the IIS/Site relevant part (Point2) to a non system drive?
Thank you
- LeonPavesicSilver Contributor
Hi olkipolki,
thanks for the update.To move only the IIS specific sites/configuration to a new drive without touching or reinstalling the whole Sharepoint again, you can follow these steps:
- Back up your Sharepoint environment. This is the most important step, as you will be able to restore your environment if something goes wrong. There are many different ways to back up Sharepoint, so choose a method that works best for you.
- Stop all Sharepoint services. Once you have backed up your environment, you need to stop all Sharepoint services. This can be done through the Sharepoint Central Administration website.
- Copy the Sharepoint website directories to the new drive. The Sharepoint website directories are typically located at C:\inetpub\wwwroot\wss\VirtualDirectories. Copy these directories to the new drive.
- Update the IIS configuration. Once the Sharepoint website directories have been copied to the new drive, you need to update the IIS configuration. This can be done using the IIS Manager. You will need to update the physical path for each Sharepoint website.
- Start all Sharepoint services. Once the IIS configuration has been updated, you can start all Sharepoint services.
- Test your Sharepoint environment. Once all Sharepoint services have been started, you need to test your Sharepoint environment to make sure that everything is working properly.
Here is an example of how to update the IIS configuration for a Sharepoint website:
- Open the IIS Manager.
- Expand the Sites node and select the Sharepoint website that you want to update.
- In the Actions pane, click on Edit Bindings.
- In the Edit Site Bindings dialog box, select the HTTPS binding and click on Edit.
- In the Edit Site Binding dialog box, change the Physical path to the new location of the Sharepoint website directory.
- Click on OK to save the changes.
- Repeat steps 4-6 for all of the Sharepoint websites that you want to update.
Once you have updated the IIS configuration for all of the Sharepoint websites, you can start all Sharepoint services and test your Sharepoint environment.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)