Windows Server 2012 Core to GUI with follow error:

p_w_picpath

Error Message:

Install-WindowsFeature : The request to add or remove features on the specified server failed.

Installation of one or more roles, role services, or features failed.  The source files could not be downloaded. 

Use the source option to specify the location of the files that are required to restore the feature.

Error: 0x800F0906

The error means system can not find the source files. 

  1. Create a p_w_picpath source folder:  mkdir c:\p_w_picpath

  2. check your wimfile to determine the correct index:

    dism /get-p_w_picpathinfo /ImageFile:d:\sources\install.wim

  3. use command to mount p_w_picpath :

    dism /mount-wim /wimfile:d:\sources\install.wim /index:2 /mountdir:c:\p_w_picpath /readonly

4. Convert to GUI:

install-windowsfeature server-gui-mgmt-infra,server-gui-shell –restart –source c:\mount\windows\winsxs

5. Unmount Wim (dism /unmount-wim /mountdir:c:\p_w_picpath)

6. Remove Mount Directory (rmdir c:\p_w_picpath)