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


hi there stuggling work conversion of server core gui , again

the command seems be

import-module dism 
    
     enable-windowsoptionalfeature –online -featurename servercore-fullserver,
     server-gui-shell,server-gui-mgmt

however error not being able find source.

i added -source d:\sources\sxs above command still cant find source.

has managed work?


this posting provided "as is" no warranties, , confers no rights. check out blog @ - http://chrisbeams.wordpress.com/


you can use -source option on non-internet connected machine.  here steps:

  • create folder mount windows imaging file (wim) in command
    mkdir c:\mountdir
  • determine index number server datacenter using command @
    elevated command prompt: dism /get-wiminfo
    /wimfile:<drive>:sources\install.wim
  • mount wim file using command @ elevated command prompt:
    dism /mount-wim /wimfile:<drive>:\sources\install.wim
    /index:<#_from_step_2> /mountdir:c:\mountdir /readonly

  • start windows powershell , run cmdlet:install-windowsfeature server-gui-mgmt-infra,server-gui-shell –restart
    –source c:\mountdir\windows\winsxs

  • alternatively, if want use windows update source instead of
    wim file, use windows powershell cmdlet:install-windowsfeature server-gui-mgmt-infra,server-gui-shell
    –restart


--joseph [msft] http://blogs.technet.com/b/joscon/



Windows Server  >  Windows Server 2012 General



Comments

Popular posts from this blog

After enabling Windows Server 2012 R2 DHCP Failover Getting Packet dropped because of Client ID hash mismatch

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?