Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1386
  • Last Modified:

Delete folders and subfolders

I have a folder located on a NAS.
It has 5 subfolders, all empty. I have taken ownership and given myself full control of the folder and sub folders.
When I try to delete the folder I get a message telling me that I need to give myself permission to make changes.
I've also tried to delete it from a command prompt with no luck.
How can I force the deletion of the folders?
0
LindyS
Asked:
LindyS
  • 3
  • 2
  • 2
  • +1
1 Solution
 
Kruno DžoićSystem EngineerCommented:
0
 
LindySAuthor Commented:
Yes, I took ownership of the folder and applied it to all the subdirectories.
I also gave myself full control over the folder and sub directories.
0
 
Kruno DžoićSystem EngineerCommented:
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
Suryanarayan Balakrishnan IyerSenior ConsultantCommented:
You would have the right to create or delete share if you have rights to do so. Check if you have the appropriate rights to do so or in the ACL somewhere you have deny against you.
1. You would have a nas admin account. Login using the NAS admin group and then take owner ship and do the needful.
2. You can also delete them using the NAS admin account.
0
 
loki_lokiCommented:
Have you tried deleting each sub folder individually?  It may just be one folder that is giving issues.    Can you do a net file on the nas and see if it thinks some has it open at all?
0
 
Suryanarayan Balakrishnan IyerSenior ConsultantCommented:
To take the owner ship on the share use the DC on which NAS is configured. Example:
We have NAS configured on our primary DC and the account XXX of the DC is used as NAS admin account. We login to the DC with XXX to take ownership in case of situations where user create their own share and don't give permission so that others would work on it.
0
 
LindySAuthor Commented:
I finally figured out how to delete the folders.

RD [/S] [/Q] [drive:]path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.

/Q Quiet mode, do not ask if ok to remove a directory tree with /S


I tried del, but that didn't work. rd /S was the answer.
0
 
LindySAuthor Commented:
Did some more research and found the solution
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now