Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-08-2001, 12:49 PM   #1
Member (7 bit)
 
Join Date: Oct 1999
Posts: 93
Send a message via ICQ to vista7
Deleting corrupt files in NT Workstation

We have a large group of files stored on our server, and we need to delete
them. If we go to ctrl-a and hit delete; we cannot delete the files
until we individually take ownership of the files. This can be time consuming
because of the number of subfolders in the directory. We tried using CACLS
from the NT resource kit, but this did not have an option to take ownership,
but only to change the attribute from read, change, or full control.
Does anyone have any ideas for running a script that will allow for the
domain admin or a paticular user to take ownership of a large batch of files?
vista7 is offline   Reply With Quote
Old 05-12-2001, 06:39 AM   #2
Registered User
 
Join Date: Mar 1999
Posts: 355
NT 101

if the files are all under one directory, you can right on that directory then choose properties/security/ownership/take ownership at that point, it will ask you to take ownership of all files or directories. that could screw up your permissions if some of your folders need to be owned by someone else, but why would any normal user need to own most directories if the group or user's permissions are set properly?

hmmmm...why can't you just give yourself full control, replace permissions on subdirectories and existing files, then delete everything?

if you really must script it, there is always an NT version of chown in the resource kit tools that should do what you need.
WickedLittleSlaveBoy is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:59 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2