• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 118
  • Last Modified:

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?
0
jmachado81
Asked:
jmachado81
  • 4
2 Solutions
 
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now