Hi I installed Windows ADK 10 v1511 on Windows 10 v1511 Enterprise 64 bit. I typed the following commands: Code: Dism /Apply-Image /ImageFile:"<wim_File_Path>\install.wim" /Index:1 /ApplyDir:"<Apply_Directory_Path>" /Verify /CheckIntegrity Dism /Capture-Image /ImageFile:"<Windows_Files_Path>\sources\install.wim" /CaptureDir:"<Apply_Directory_Path>" /Name:"<Edition_name>" /Description:"<Description_name>" /Compress:max /Verify /CheckIntegrity Now, what is the command that allows to completely remove the entire content of the <Apply_Directory_Path> directory? Thanks Bye
Dism /? Dism /apply-image /? etc. You haven't mounted anything. just delete the destination... You could have just exported the image with compression... Everything including examples are is dism help...
3 Learn something about file permissions and ownership, isn't really that hard and comes handy in the future.
Yeah, that would be really convenient. And It would be much appreciated if you can share that knowledge with him.
You can't rename the folder w/o setting the correct permissions. And when you do this, the folder can be deleted w/o the use of any tool.
I think the web is plenty of tutorials that explains how to set a folder permission, given the mechanism is basically the same since NT 3.51 Anyway just RMB > properties > security tab > advanced. Then Owner/principal (or whatever is called in english) to change the file/folder owner from Trusted installer or system to Administrators or the actual administrator. Then close and repeat the steps to add user(s) and to give full control to them. in both steps don't forget to inherit the changes or they will affect only the top level folder. Back to the main question There are many other ways Use a superelevated prompt and use rmdir /s Use the command prompt from the recovery environment that doen't take in account the permissions. Use a bootable linux distro an delete the folder using either the command line or a random filemanager
Not recommending removing users folder normally it might remove personal folders also @ts dont rename move to new folder
Dism /Apply-Image and completely remove the entire content of the directory Hi I installed Windows ADK 10 v1511 on Windows 10 v1511 Enterprise 64 bit. I typed the following commands: Code: Dism /Apply-Image /ImageFile:"<wim_File_Path>\install.wim" /Index:1 /ApplyDir:"<Apply_Directory_Path>" /Verify /CheckIntegrity Dism /Capture-Image /ImageFile:"<Windows_Files_Path>\sources\install.wim" /CaptureDir:"<Apply_Directory_Path>" /Name:"<Edition_name>" /Description:"<Description_name>" /Compress:max /Verify /CheckIntegrity Now, knowing that some directories and files have the TrustedInstaller or System user as owner, what are the commands that allows to completely remove the entire content of the <Apply_Directory_Path> directory? Thanks Bye
Hi Should I take ownership and get full control of the entire contents of a not system directory structure (also containing files and symbolic links and not) that, now, this check belongs to TrustedInstaller or System users. Then, using only the Command Prompt commands, how do I do this? Thanks Bye
Hence the need of two passes one for replace the owner, the other to give the permissions to that (and optionally other users). I believe is better to understand how to manage the matter graphically, using some copy/pasted commands w/o a clear vision isn't really a good thing. anyway This takeown /F C:\Windows.old\* /R /A cacls C:\Windows.old\*.* /T /grant administrators:F rmdir /S /Q C:\Windows.old\ Should do the trick
If you're on win 8+ try replacing the second line with icacls C:\Windows.old\*.* /T /grant administrators:F