Server Core

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.

mkdir c:\mount
dism /mount-wim /wimfile:d:\sources\install.wim /index:4 /mountdir:c:\mount /readonly
powershell.exe
install-windowsfeature server-gui-mgmt-infra,server-gui-shell –source c:\mount\windows\winsxs –restart

Thoughts?
jmachado81Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CamyCommented:
Possibly need to unmount again?

dism /unmount-image /mountdir:C:\mount /discard

Open in new window

0
MikeIT ManagerCommented:
As Camy said, dismount that directory.  You most likely cannot delete it because Windows is protecting it.
0
jmachado81Author Commented:
I ran that command and I still cannot remove it even after a reboot.  I have a message stating "require permissions from TurstedInstaller to make changes to this folder" when i attempt to delete it.
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

jmachado81Author Commented:
Does the C:\mount now become the new C:\ directory when migrating from CORE to GUI?
0
jmachado81Author Commented:
Once i dismounted and completed these steps i was able to successfully remove the C:\mount directory which was over 10gb in size.

*Right-click "C:\mount" directory and select properties
**Security tab > Advanced
**Change owner to builtin\Administrators
**Replace all child objects
**OK
*Delete the C:\mount and C:\sources directories.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jmachado81Author Commented:
I was unable to locate a native powershell command to set the ownership, but the gui steps along with the dismount resolve my issue.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.