Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

Delete Directories Completely

$
0
0

I Robocopy'd two folders from a SBS2008 server to a Windows Server 2012 R2.

Some of the folders didn't inherit NTFS permissions from the 2012 R2 server's "Migration" parent folder, which sucks. 

I need to delete the folders' contents now, but it's very time consuming because I have to take ownership the folder, remove inheritance, replace inherited objects, and add my domain admin account Full Control to This Folder, Sub-Folders, and Files.

I tried running "Remove-Item * -Recurse -Force" from the parent directory, but the access was denied to the path. 

Any way to delete the folders/files in a few key strokes instead of clicking one thousand times?!   :D


Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>