OS: Enterprise Windows Server 2008 R2
Activity: MS EPM 2010 Installation
Issue:
As per company policy, all the applications should instaIl on D drive rather than on the default C drive. I was installing MS EPM 2010 on Windows Server 2008 R2 OS by using auto SP installer. I need to find out a way to configure the server in a way to install all the application on D drive automatically.
Activity: MS EPM 2010 Installation
Issue:
As per company policy, all the applications should instaIl on D drive rather than on the default C drive. I was installing MS EPM 2010 on Windows Server 2008 R2 OS by using auto SP installer. I need to find out a way to configure the server in a way to install all the application on D drive automatically.
Solution:
To set the D drive as a default installation path, you need to update a few registry entries. To automate this, use the following steps
Steps:
Steps:
1- Create a batch (.bat) file named "find_iis_root". bat and add the following commands
echo off
REM Following script is used to display the values in the registry for IIS Virtual Directory
REM Settings
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp" /v PathWWWRoot
- Save the file. Open a command prompt and run the about batch file, the system will show C drive as the current installtion path.
2- Create a registry file named "IIS_root.reg". This file will actually update the registry entries to set the default path in Windows server 2008 R2. Add the following command in the file and save it with the extension
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
PathWWWRoot = D:\Data\vroots
(In my case, I set "D:\Data\vroots" path)
3- Create a new batch file that will be used to run the above registry file. Name the file as the same of registery file i.e. "IIS_root.bat" and add the following commands
echo off
REM Following command is used to update the registry for changing IIS
REM default virtual directory settings. Open iis_root.reg file in Notepad
REM to see while key are being changed. Refer URL
REM http://blogs.technet.com/wbaer/archive/2008/06/10/add-this-to-your-image.aspx
regini iis_root.reg
echo Registry Updated
- Save the batch file and run this batch file. This batch file will run the registry file and update the entries in the Registry file. Once you run this file, you will see the following output in the command prompt
echo off
REM Following script is used to display the values in the registry for IIS Virtual Directory
REM Settings
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp" /v PathWWWRoot
- Save the file. Open a command prompt and run the about batch file, the system will show C drive as the current installtion path.
2- Create a registry file named "IIS_root.reg". This file will actually update the registry entries to set the default path in Windows server 2008 R2. Add the following command in the file and save it with the extension
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
PathWWWRoot = D:\Data\vroots
(In my case, I set "D:\Data\vroots" path)
3- Create a new batch file that will be used to run the above registry file. Name the file as the same of registery file i.e. "IIS_root.bat" and add the following commands
echo off
REM Following command is used to update the registry for changing IIS
REM default virtual directory settings. Open iis_root.reg file in Notepad
REM to see while key are being changed. Refer URL
REM http://blogs.technet.com/wbaer/archive/2008/06/10/add-this-to-your-image.aspx
regini iis_root.reg
echo Registry Updated
- Save the batch file and run this batch file. This batch file will run the registry file and update the entries in the Registry file. Once you run this file, you will see the following output in the command prompt
Now it the time to test the default path. Run the "find_iis_root.bat" batch created in step 1 and see the following path i.e. D:\Data\vroots
No comments:
Post a Comment