Riprep Image to WDS WIM conversion error

I found an error while converting  Riprep Image to WDS WIM file. If you are having same trouble doing conversion. Here is a little solutions for you.

Error:

An error occurred while trying to execute the command.
Error Code: 0xC103014B
Error Description: Wdsmgmt could not load a required library.  If this is a version of Windows prior to Vista, please install the OPK/WAIK toolkit and ensure that drvstore.dll and cmiv2.dll are in the path.

Why it happens? WDSUTIL looks for drvstore.dll , cmiv2.dll and xmllite.dll file in %windir%\system32 folder. When it fails to locate these files it gives an error code:0xC103014B even though Windows AIK is installed in WDS server.

Resolution:

You must install Windows AIK and Copy drvstore.dll , cmiv2.dll and xmllite.dll files from %windir%\Program files\Windows AIK\Tools\Servicing to %windir%\system32

Now open command prompt and run  wdsutil /convert-RiprepImage /filepath:SourcePath\riprep.sif /destinationimage /filepath:destination path\FileName.wim 

Screenshot: Before copying those files to %windir%\system32

1

Screenshot: after resolving issue

2

Move RIS from old server to new

Scenario: Consider present infrastructure got AD, DNS, DHCP and RIS. DHCP and RIS installed in old server. You bought new server that required to move RIS and DHCP. This is how, you can accomplish your objective. Consider ServerA will be decommissioned as RIS and ServerB will be commissioned as RIS.

Step1 Backup DHCP

Step2 Copy all RIS images from ServerA  from separate storage \\ServerA\REMINST\Setup\English\Images

you can use XCOPY Source destination /Y /X /O /E /H /K /C from command prompt.

Step3 Stop DHCP and RIS services in ServerA

Step4 Install new server i.e. ServerB and Patch up

Step5 install DHCP in ServerB, restore DHCP from backup and start DHCP service

Step6 install RIS from add/remove windows component and run RIS setup

Step 7 delete *.pnf files from \\ServerB\REMINST\Setup\Images folder

Step 8 Copy all previous image using XCOPY command to new server i.e. \\ServerB\REMINST\Setup\Images folder

Step9 restart RIS service or reboot new RIS server

You are ready to go.