none
PowerShell to Add GUI to Server Core (ServerCore-FullServer)

    Question

  • Hi there i am stuggling to get to the work the conversion of Server Core to GUI and back again

    the command seems to be

    Import-Module Dism 
        
         Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer,
         Server-Gui-Shell,Server-Gui-Mgmt

    However i get an error about not being able to find the source.

    I added -Source D:\Sources\sxs to the above command but it still cant find the source.

    Has anyone managed to get this to work?


    This posting is provided "AS IS" with no warranties, and confers no rights. Check out my blog at - http://chrisbeams.wordpress.com/


    Friday, March 2, 2012 2:28 PM

Answers

  • You can use the -source option on a non-Internet connected machine.  Here are the steps:

    • Create a folder to mount a Windows Imaging File (WIM) in with the command
      mkdir c:\mountdir
    • Determine the index number for Server Datacenter using this command at an
      elevated command prompt: Dism /get-wiminfo
      /wimfile:<drive>:sources\install.wim
    • Mount the WIM file using this command at an elevated command prompt:
      Dism /mount-wim /WimFile:<drive>:\sources\install.wim
      /Index:<#_from_step_2> /MountDir:c:\mountdir /readonly

    • Start Windows PowerShell and run this cmdlet:Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart
      –Source c:\mountdir\windows\winsxs

    • Alternatively, if you want to use Windows Update as the source instead of a
      WIM file, use this Windows PowerShell cmdlet:Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell
      –Restart


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Friday, March 2, 2012 4:19 PM
    Moderator
  • Hi,
     
    I ran the following command in PowerShell without any issues.
     
    1. Import-Module Dism
    2. Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer,Server-Gui-Shell,Server-Gui-Mgmt
     
    By the way, you can also try the following command line:
     
    Dism /online /enable-feature /featurename:ServerCore-FullServer /featurename:Server-Gui-Shell /featurename:Server-Gui-Mgmt
     

    Vincent Hu

    TechNet Community Support

    Friday, March 2, 2012 3:50 PM
    Moderator
  • Sure, Enable-WindowsOptionalFeature is a DISM command

    Install-WindowsFeature is the servermanager Windows PowerShell cmdlet

    In the end, both do the same thing but the PowerShell command will end up calling DISM to do the work.  If you prefer the DISM commands, you can still use them, the source would just be the path to the mounted directories winsxs folder.


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Friday, March 2, 2012 4:48 PM
    Moderator

All replies

  • Hi,
     
    I ran the following command in PowerShell without any issues.
     
    1. Import-Module Dism
    2. Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer,Server-Gui-Shell,Server-Gui-Mgmt
     
    By the way, you can also try the following command line:
     
    Dism /online /enable-feature /featurename:ServerCore-FullServer /featurename:Server-Gui-Shell /featurename:Server-Gui-Mgmt
     

    Vincent Hu

    TechNet Community Support

    Friday, March 2, 2012 3:50 PM
    Moderator
  • does your box have web access - mine doesnt and i wonder if it attemps to download something as part of the install. This is why i was hoping adding the -source path would get round this.

    This posting is provided "AS IS" with no warranties, and confers no rights. Check out my blog at - http://chrisbeams.wordpress.com/

    Friday, March 2, 2012 4:03 PM
  • You can use the -source option on a non-Internet connected machine.  Here are the steps:

    • Create a folder to mount a Windows Imaging File (WIM) in with the command
      mkdir c:\mountdir
    • Determine the index number for Server Datacenter using this command at an
      elevated command prompt: Dism /get-wiminfo
      /wimfile:<drive>:sources\install.wim
    • Mount the WIM file using this command at an elevated command prompt:
      Dism /mount-wim /WimFile:<drive>:\sources\install.wim
      /Index:<#_from_step_2> /MountDir:c:\mountdir /readonly

    • Start Windows PowerShell and run this cmdlet:Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart
      –Source c:\mountdir\windows\winsxs

    • Alternatively, if you want to use Windows Update as the source instead of a
      WIM file, use this Windows PowerShell cmdlet:Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell
      –Restart


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Friday, March 2, 2012 4:19 PM
    Moderator
  • thanks i will try that later tonight, can you confirm the different between

    Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer,Server-Gui-Shell,Server-Gui-Mgmt

    and

    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell


    This posting is provided "AS IS" with no warranties, and confers no rights. Check out my blog at - http://chrisbeams.wordpress.com/

    • Proposed as answer by ansleyrl Wednesday, September 4, 2013 2:39 AM
    Friday, March 2, 2012 4:41 PM
  • Sure, Enable-WindowsOptionalFeature is a DISM command

    Install-WindowsFeature is the servermanager Windows PowerShell cmdlet

    In the end, both do the same thing but the PowerShell command will end up calling DISM to do the work.  If you prefer the DISM commands, you can still use them, the source would just be the path to the mounted directories winsxs folder.


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Friday, March 2, 2012 4:48 PM
    Moderator
  • thanks that worked eventually , i selected the datacenter server core version initially from the install.wim but this doesnt have the requireed files in it. On the next attempt i used the full version and this worked.

    Chris


    This posting is provided "AS IS" with no warranties, and confers no rights. Check out my blog at - http://chrisbeams.wordpress.com/

    Monday, March 5, 2012 11:24 AM
  • Glad to know that worked for you Chris.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    • Proposed as answer by eschencedq Thursday, September 12, 2013 2:20 PM
    Monday, March 5, 2012 11:41 AM
    Moderator
  • Hello, I'm a Program Manager on the Windows Server team. Thanks for trying out Server Core and the Minimal Server Interface!

    Server features can be installed from the web via Windows Update. If you want to install from a local source, you can mount the install.wim file using Dism /Mount-Wim. When mounting the wim, make sure you mount an image index that contains the feature you want to install (e.g. Server with GUI). Then point Dism or Install-WindowsFeature to the mount directory (e.g. c:\mount) as the source. 

    The sxs directory on the media only contains files that are not already in the wim; that way you aren't downloading redundant data. Thus, if you wanted to install some feature like NetFx3 (.NET Framework 3.5), that feature is not included in any edition and is therefore not in the wim at all; you'd have to point to the sxs directory in this case.

    If you wanted to create a centralized network install point that you could point to, you could extract the wim and then merge the contents of the sxs directory on the media with the winsxs directory in <mount>/windows/winsxs to have a single source that could install all features. Hope this makes sense! Let me know if you have any more questions or feedback about Features on Demand.

    For more information, there is also documentation available at http://technet.microsoft.com/en-us/library/hh831786.aspx (I believe everything in this post is also covered in the documentation)

    Thanks again!

    Ben

    Tuesday, March 6, 2012 9:37 PM
  • sconfig has also an optino implemented to change from core to gui version.
    Monday, April 2, 2012 7:50 PM
  • It does but this option only works when you're in Minimal Server Interface because the packages aren't staged in Server Core.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Monday, April 2, 2012 7:53 PM
    Moderator
  • It does but this option only works when you're in Minimal Server Interface because the packages aren't staged in Server Core.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    What does "staged" mean?

    I could use sconfig to change from server core to gui version.

    Sinde the GUI was installed before on that system did stage the package so it was instalable again from sconfig?

    Wednesday, April 4, 2012 2:53 PM
  • Staged refers to the state of a particular package when servicing the operating system.  In Windows we have three major states, absent (package doesn't exist), staged (package exists but isn't installed) and installed (package is installed and loaded).  In Windows Server "8" Beta, we have the ability to manipulate packages in a way we haven't had in the past, known as Features on Demand.  This is what you're doing when you're adding and removing the shell or other features. 

    When you install only Server Core, there are a limited number of roles and features that are available (staged) for install.  Everything else has been removed (absent) and needs to be re-added to the server for the role to be installed.  I have information on Features on Demand in my Servicing UTG.  It's located here if you're interested http://www.microsoft.com/download/en/details.aspx?id=29030

    In my experience using sconfig to add the shell back, it only works when the server is in Minimal Server Interface because that's where the packages are already pre-staged and available for the commands to work.  In Server Core, the command will open a command prompt and appear to run but the shell is not actually added.  I might have to revisit that if you're saying that isn't the case.  But that hasn't been my experience in the past.


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Wednesday, April 4, 2012 3:03 PM
    Moderator
  • If you start at Server with GUI and then go down to Server Core without specifying the -Remove flag, the packages are disabled but remain staged and are not removed from the cache (WinSxS). You can later re-install these packages without supplying an external source or going out to Windows Update. If you specify the -Remove flag, the packages for the GUI are disabled and then deleted from disk.

    If you start at Server Core, the Server with GUI packages are not staged and need to be installed from an external source like Windows Update or your installation media (WIM).


    Wednesday, April 4, 2012 3:42 PM
  • Isnt it that if your in MUI,don't you need to open up PowerShell to use those commands?
    Sunday, June 10, 2012 1:20 PM
  • Ben,

    This is great info...I followed the process per the link. (Including steps start-finish, incase this is a first for someone else as it was for me) I however could not get step 5 below (as a test to work).  (Essentially downloading from Windows Update repository instead of local source)

    (STEPS mounting win from install DVD)

    1) Create a folder to mount a Windows Imaging File (WIM) in with the command mkdir c:\mountdir

    2) Determine the index number for a Server with a GUI image (for example, SERVERDATACENTER, not SERVERDATACENTERCORE) using this command at an elevated command prompt: Dism /get-wiminfo /wimfile:<drive>:sources\install.wim

    3) Mount the WIM file using this command at an elevated command prompt: Dism /mount-wim /WimFile:<drive>:\sources\install.wim /Index:<#_from_step_2> /MountDir:c:\mountdir /readonly

    Start Windows PowerShell and run this cmdlet:

    4) Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source c:\mountdir\windows\winsxs

    5) Alternatively, if you want to use Windows Update as the source instead of a WIM file, use this Windows PowerShell cmdlet:

    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart


    Microsoftie

    • Edited by Pan Zhang Monday, June 10, 2013 4:13 AM
    Tuesday, July 3, 2012 2:10 AM
  • at the first i dont know if it normally but i did not find the resources file and i am using bootable VHD , so i attached and added the file manually  then retried the powershell command , but i had the same error . 

    so i tried joscon mount way and it worked , but when the windows restarted while the configuring windows feature  its stucked in 15% ,, i think i need to do more investigation about this part.... hope this helps some ppl ,,,  

    Wednesday, September 26, 2012 8:46 PM
  • Whatever I do, I always end up with 68% install status and folder/file not found error. I tried everything:
    - PS commands above
    - Dism commands abobe
    - pointing source to SXS folder to disk
    - pointing source to .wim on disk
    - core servers are connected to the internet, and are able to access windows update

    Friday, July 12, 2013 3:19 PM
  • You can use the -source option on a non-Internet connected machine.  Here are the steps:

    • Create a folder to mount a Windows Imaging File (WIM) in with the command
      mkdir c:\mountdir
    • Determine the index number for Server Datacenter using this command at an
      elevated command prompt: Dism /get-wiminfo
      /wimfile:<drive>:sources\install.wim
    • Mount the WIM file using this command at an elevated command prompt:
      Dism /mount-wim /WimFile:<drive>:\sources\install.wim
      /Index:<#_from_step_2> /MountDir:c:\mountdir /readonly

    • Start Windows PowerShell and run this cmdlet:Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart
      –Source c:\mountdir\windows\winsxs

    • Alternatively, if you want to use Windows Update as the source instead of a
      WIM file, use this Windows PowerShell cmdlet:Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell
      –Restart


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Whatever I do mentioned in here, I always get a result that "the source files could not be downloaded". I also did this exactly as written, using index:2 for Standard Full Gui image, and still result is the same.

    I´m suffering from something serious in Hyper-V and I need gui to be there, to manage VMs.

    Wednesday, July 24, 2013 6:09 PM
  • Make sure you're not copying and pasting these commands in because it can lead to "long dashes" and mess up the installation. 

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Wednesday, July 24, 2013 6:21 PM
    Moderator
  • Make sure you're not copying and pasting these commands in because it can lead to "long dashes" and mess up the installation. 

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/


    No I´m not. Triple check spelling every time. Thing is, that it loads to 68%, there is lot of HDD led activity going on, and after entering the command, it takes 10-15 minutes to proceed to the error. Now the last time I used dism mount wim, the process loaded some minutes the dvd-drive, so it is doing something, but fails.
    Wednesday, July 24, 2013 7:00 PM
  • So you're failing when attempting to mount the WIM?  Try this command instead (where D: is the proper driver letter for your ODD):

    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -source:wim:d:\sources\install.wim:4


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Wednesday, July 24, 2013 7:09 PM
    Moderator
  • I´m failing in every way, when adding gui, with the same error. I´ve tried all ways to add gui features, mentioned in this thread and some more.

    - PS commands above
    - Dism commands abobe
    - pointing source to SXS folder to disk
    - pointing source to .wim on disk
    - pointing source to .wim mounted with dism

    Wednesday, July 24, 2013 7:13 PM
  • Just a thought - this server has multiple nics and virtual switches of Hyper-V. One nic is connected directly to the internet, other are LAN´s nics, and there might be some problem with routing. Does this effect anyhow?
    Thursday, July 25, 2013 8:03 AM
  • It shouldn't.  Have you checked the machine for component store corruption?

    DISM /Online /Cleanup-Image /RestoreHealth


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Thursday, July 25, 2013 2:18 PM
    Moderator
  • Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -source:wim:d:\sources\install.wim:4



    Incorrect parameter (error comes right away).
    Thursday, July 25, 2013 2:20 PM
  • And you have the path pointing to the proper drive letter?  That's one reason it would return incorrect param immediately.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Thursday, July 25, 2013 2:32 PM
    Moderator
  • And you have the path pointing to the proper drive letter?  That's one reason it would return incorrect param immediately.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/


    Sure, proper drive letter is set. Double-checked :)
    Thursday, July 25, 2013 2:37 PM
  • Then let me know what the corruption scan returns (the other command I posted) and we can go from there.  Once that's complete, if the commands still fail, I'd like to see your CBS and DISM logs from the machine.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Thursday, July 25, 2013 3:34 PM
    Moderator
  • Thanks, nice to know there is help here available :)

    I managed finally to turn on Gui on my Hyper-V, when I disconnected all physical LANs, leaving only one NIC with public IP, and I did it with mounting image into mountdir, instructed above. But when trying to do the same trick on a core VM on that host, I still failed. I also tried "bare" dism /online but it also stucks at 66% and wines about the source.

    I will get back with the logs later.

    Thursday, July 25, 2013 4:08 PM
  • Then let me know what the corruption scan returns (the other command I posted) and we can go from there.  Once that's complete, if the commands still fail, I'd like to see your CBS and DISM logs from the machine.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Can you work with these? I´m sorry, but this is the best I can do for now, I´m stuck with the isolated enviroment and unable to copy paste between VM and host.

    Friday, July 26, 2013 10:04 AM
  • Friday, July 26, 2013 10:05 AM
  • Not really, but I have a couple of ideas.

    1.  For the PowerShell command I gave you to add the feature, make sure you don't have the WIM mounted.  We'll automount the WIM for you with that command

    2.  If you want to try DISM, you can use the /LimitAccess switch which will bypass WSUS servers in the environment.  If you have WSUS, it might be catching the request and that's causing the failure (its not a supported source)


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Friday, July 26, 2013 2:01 PM
    Moderator
  • I think I have tried every dism and ps commands I could find in these threads. If I´m the only one struggeling with this, perhaps I have bad media or dvd-drive or my network communication to VMs are miss configured. But, I sure can add other features via Powershell on the same VM without source, no problem.

    Anyway, I gave up on this, I terminated all cores and restored my AD from another snapshot DC, so this headache is now over :)

    Friday, July 26, 2013 2:23 PM
  • Sorry to hear that.  We haven't seen a lot of issues around this outside of those directly after launch.  A bad source could easily be the case.  I'm sorry that you needed to restore the server to get back to a working state.  Let me know if you have further issues.

    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Friday, July 26, 2013 2:26 PM
    Moderator
  • I tried the same steps. Everything went fine till step 3.

    When I try the 4th Step, I'm getting error.

    PS C:\mountdir> Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -R
    estart -Source c:\mountdir\windows\winsxs
    Install-WindowsFeature : ArgumentNotValid: The role, role service, or feature
    name is not valid: 'Server-Gui-Mgmt-Infra,Server-Gui-Shell'. The name was not
    found.
    At line:1 char:1
    + Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart
    -Source c ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidArgument: (Server-Gui-Mgmt-Infra,Server-G
       ui-Shell:String) [Install-WindowsFeature], Exception
        + FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager
       .Commands.AddWindowsFeatureCommand

    Success Restart Needed Exit Code      Feature Result
    ------- -------------- ---------      --------------
    False   No             InvalidArgs    {}


    PS C:\mountdir>

    I've tried all the options for other blogs, still I'm not able to add GUI Mode.

    Saturday, August 10, 2013 7:34 AM
  • I tried the same steps. Everything went fine till step 3.

    When I try the 4th Step, I'm getting error.

    PS C:\mountdir> Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -R
    estart -Source c:\mountdir\windows\winsxs
    Install-WindowsFeature : ArgumentNotValid: The role, role service, or feature
    name is not valid: 'Server-Gui-Mgmt-Infra,Server-Gui-Shell'. The name was not
    found.
    At line:1 char:1
    + Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart
    -Source c ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidArgument: (Server-Gui-Mgmt-Infra,Server-G
       ui-Shell:String) [Install-WindowsFeature], Exception
        + FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager
       .Commands.AddWindowsFeatureCommand

    Success Restart Needed Exit Code      Feature Result
    ------- -------------- ---------      --------------
    False   No             InvalidArgs    {}


    PS C:\mountdir>

    I've tried all the options for other blogs, still I'm not able to add GUI Mode.

    Saturday, August 10, 2013 7:35 AM
  • Use this: DISM /Online /Cleanup-Image /RestoreHealth

    Then this: Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -source:wim:d:\sources\install.wim:4

    Where D: == your actual DVD location.  You do not need to mount the install.wim anywhere for this to work properly


    --Joseph [MSFT] http://blogs.technet.com/b/joscon/

    Saturday, August 10, 2013 2:32 PM
    Moderator
  • Twice, I got a situation where after removing another features, GUI was gone after reboot (during .NET 4.5 removal). I managed to get GUI back very easy with Server Manager Dashboard by managing another servers (the one which lost gui).

    Monday, August 12, 2013 1:23 PM
  • I too have tried everything to get GUI loaded.  I have Server 2012 Standard and started with only a Core install.  I created a Group Policy to bypass our internal WSUS server.  I have tried your suggestion and still ended up with the same result.  I have verified the path to install.wim to be correct.
    DISM /Online /Cleanup-Image /RestoreHealth
    
    Deployment Image Servicing and Management tool
    Version: 6.2.9200.16384
    
    Image Version: 6.2.9200.16384
    
    [==========================100.0%==========================]
    The restore operation completed successfully. The component store corruption was repaired.
    The operation completed successfully.
    
    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -source:wim:d:\sources\install.wim:2
    
    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 found.
    Use the "Source" option to specify the location of the files that are required to restore the feature. For more
    information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f
    At line:1 char:1
    + Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -source:wim:d:\sou ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

    Tuesday, October 15, 2013 12:53 AM
  • I have exactly the same problem converting Core to Full.

    Commands I use:

    Dism /Online /Cleanup-Image /RestoreHealth
    Dism /Mount-Image /ImageFile:D:\sources\install.wim /index:4 /MountDir:C:\mount /ReadOnly
    Dism /online /enable-feature /featurename:Server-Gui-Mgmt /featurename:Server-Gui-Shell /featurename:ServerCore-FullServer /source:c:\mount\windows\winsxs /LimitAccess

    No luck. I also tried direct wim installation, but it fails too:




    • Edited by Savvkin Monday, October 21, 2013 8:42 PM
    Monday, October 21, 2013 8:33 PM
  • There is no : between -Source and the path. It should be

    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Source wim:d:\sources\install.wim:4

    Regards,

    Ben

    Monday, October 21, 2013 9:36 PM
  • There is no : between -Source and the path. It should be

    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Source wim:d:\sources\install.wim:4

    Regards,

    Ben


    Also if the server has been patched/updated please see this blog for additional information. http://blogs.technet.com/b/server_core/archive/2012/11/05/using-features-on-demand-with-updated-systems-and-patched-images.aspx
    Monday, October 21, 2013 9:37 PM
  • Hello, Ben.

    Replacing ':' with ' ' between -Source and path didn't make any difference.

    I've installed like millions of patches from Windows Update since I installed Windows Server 2012 Core. Does this mean now it's not possible to switch GUI from installation media, because media contains old, outdated files?

    But why I can't switch GUI without sources too, using Windows Update only using this command?

    Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell

    Your article say that I need update my installation media and there is a way to include patch into install.wim. But only one by one! Is there any easy automated way to automate this?


    • Edited by Savvkin Tuesday, October 22, 2013 12:17 PM
    Tuesday, October 22, 2013 12:15 PM
  • You should be able to install using Windows Update as the source as long as the server has internet connectivity. Is this not working? If this is the case, can you paste your CBS.log file and we can investigate.

    Note: The CBS.log file can be large, so I recommend putting it on http://gist.github.com or http://pastebin.com and including only a link to the log in this thread. You can also copy the file to SkyDrive or another cloud storage service.

    Thanks,
    Ben


    Tuesday, October 22, 2013 4:22 PM
  • My CBS log is 1.5Gb.

    Should I delete it and try to switch GUI?

    Update: Anyway, I zipped and uploaded this file to "another cloud service" and sent you the link to ben@herila.net (I don't want to post link here, since it may contain a lot of private data).

    • Edited by Savvkin Tuesday, October 22, 2013 6:45 PM
    Tuesday, October 22, 2013 6:24 PM
  • My CBS log is 1.5Gb.

    Should I delete it and try to switch GUI?

    Update: Anyway, I zipped and uploaded this file to "another cloud service" and sent you the link to ben@herila.net (I don't want to post link here, since it may contain a lot of private data).

    Got it thanks. Could it be that you are using WSUS and FOD is hitting the WSUS server rather than WU?

    (For others reference: in the logs there are tons of lines like this:

    2013-10-22 16:22:25, Info                  CBS    Failed to add file amd64_microsoft-windows-w..pdateclient-activex_31bf3856ad364e35_7.8.9200.20553_none_3afa58e649862983\wuwebv.dll to extraction [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]

    2013-10-22 16:22:25, Info                  DPX    Extraction of file: wow64_microsoft-windows-w..pdateclient-activex_31bf3856ad364e35_7.8.9200.20553_none_454f03387de6eb7e\wuapp.exe failed because it is not present in the container.

    2013-10-22 16:22:25, Info                  DPX    DpxException hr=0x80070002 code=0x020109

    2013-10-22 16:22:25, Info                  CBS    Failed to add file wow64_microsoft-windows-w..pdateclient-activex_31bf3856ad364e35_7.8.9200.20553_none_454f03387de6eb7e\wuapp.exe to extraction [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]

    2013-10-22 16:22:25, Info                  DPX    Extraction of file: wow64_microsoft-windows-w..pdateclient-activex_31bf3856ad364e35_7.8.9200.20553_none_454f03387de6eb7e\wuwebv.dll failed because it is not present in the container.

    2013-10-22 16:22:25, Info                  DPX    DpxException hr=0x80070002 code=0x020109

    And then eventually:

    2013-10-22 16:22:46, Info                  CBS    Exec: Missing files are found during staging attempt but failed to download content from WU. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]

    )

    Don't worry Savvkin, none of this is personally identifiable information.

    Wednesday, October 23, 2013 12:38 AM
  • I don't have any WSUS installed and running on my servers there. Everything is updated directly from Online Windows Update.

    Is there any command to check WSUS that are visible on this server? Maybe my dedicated server hosting provider have some in their infrastructure?

    Wednesday, October 23, 2013 6:27 PM
  • You're not using the VL media with this filename - "SW_DVD5_Windows_Svr_Std_and_DataCtr_2012_R2_64Bit_English_Core_MLF_X19-05182"

    I am having similar problems as described in this thread using this media when trying to add gui shell to a core server install.

    I've started up another post in the Server 2012 Setup forum:

    http://social.technet.microsoft.com/Forums/en-US/4aa21936-e6b1-4467-9b96-723391ea8432/unable-to-add-gui-shell-to-core-install-with-server-2012-r2-vl-media?forum=winserver8setup

    Thursday, October 24, 2013 4:40 AM
  • Server 2012 R2 VL media has been re-released - you should see a release data of 12/12/13.  

    I can see it in the TechNet downloads, apparently it is up in MSDN also.

    For reference here is the kb article on the issue -

    http://support.microsoft.com/kb/2913316

    • Proposed as answer by Kirky007 Thursday, December 12, 2013 2:23 AM
    • Unproposed as answer by Kirky007 Thursday, December 12, 2013 6:07 AM
    Thursday, December 12, 2013 2:23 AM
  • Server 2012 R2 VL media has been re-released - you should see a release data of 12/12/13.  

    I can see it in the TechNet downloads, apparently it is up in MSDN also.

    For reference here is the kb article on the issue -

    http://support.microsoft.com/kb/2913316


    Hmm, intresting. I wonder, does the same bug exists in 2012 non-R2 OS medias also?
    Thursday, December 12, 2013 5:29 AM
  • I know this is an old thread, but using 2012 R2 I thought this tip would be helpful to others.

    After the wim is copied to the MountDir (or whatever folder you decide to create and copy the wim to), when I go through the steps of pointing the install-windowsfeature cmdlet at the source, I found the installation files in "{Drive}:\{MountFolder}\Windows\WinSXS", not "{Drive}:\{MountFolder}\Windows\SXS" as described in your tutorial.

    Again, this may have changed with the release of R2, so take it as food-for-thought.

    Friday, March 7, 2014 6:39 PM
  • Where is that?


    Best Regards, Paul Weinberg.

    Sunday, August 24, 2014 10:12 AM
  • Hi,

    I have created a folder mount WIM, selected the index and finished mounting the WIM. I am struck at the last step and not able to go through. please find the screenshot of the error. let me know what I am missing here?!

    Wednesday, December 24, 2014 7:07 AM
  • It looks like you have two typographical errors. The line should read: "Install-WindowsFeature Server-GUI_Mgmt-Infra,Server-GUI-Shell -source c:\mountdir\windows\winsxs"

    1. You forgot the "Server-" in "Server-GUI-Shell", and
    2. You need a space between the "Server-GUI-Shell" and "-Source"

    partial Get-WindowsFeature list

    To see the full list of features and the feature names in PowerShell, use the "Get-WindowsFeature" cmdlet.

    Hope this helps!


    ::- TIA -:: <b><a href="http://social.technet.microsoft.com/Forums/en-US/e5d501af-d4ea-4c0f-97c0-dfcef0192888/dont-retire-technet"> DON'T RETIRE TECHNET!</a></b>

    Tuesday, December 30, 2014 3:28 PM
  • Did you get this solved?
    Thursday, October 29, 2015 2:23 PM