I am looking for a clean way to migrate a CORE installation to GUI. I was able to get the below set of commands to work to install the GUI on a windows server core server, but now i'd like to clean the c:\mount directory these steps cause. How do i remove that directory? I already tried to simply delete it but it states permission is denied and I'm logged in as local administrator.
dism /mount-wim /wimfile:d:\sources\install.wim /index:4 /mountdir:c:\mount /readonly
install-windowsfeature server-gui-mgmt-infra,server-gui-shell –source c:\mount\windows\winsxs –restart