PDA

View Full Version : Invalid Owner for Alot of Files


psnim2000
March 20th 08, 01:12 AM
One way or another my whole Visual Studio 8 directory was set to an
invalid owner. Since there are so many files it would be tiring to set
each file's owner individually. Can anyone suggest a program or batch
script to set the owner of all the files in a given directory to a
certain user?

Mark L. Ferguson
March 20th 08, 01:19 AM
Read the Help and Support entry for "TakeOwn". There is also CACLS and
ICacls

--
Was this helpful? Then click the Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm#RateAPostAsAnswer
Mark L. Ferguson
..

"psnim2000" > wrote in message
...
> One way or another my whole Visual Studio 8 directory was set to an
> invalid owner. Since there are so many files it would be tiring to set
> each file's owner individually. Can anyone suggest a program or batch
> script to set the owner of all the files in a given directory to a
> certain user?

John John
March 20th 08, 01:27 AM
Windows XP Professional? You can use the GUI tool to do this, right
click on the folder | Properties | Security | Advanced | Owner . Select
the desired owner and check the box to Replace owner on subcontainers
and objects. You have to disable Simple File Sharing to see the
Security tab in the object's properties. You can also do this with the
SubinACL command line tool.

John

psnim2000 wrote:

> One way or another my whole Visual Studio 8 directory was set to an
> invalid owner. Since there are so many files it would be tiring to set
> each file's owner individually. Can anyone suggest a program or batch
> script to set the owner of all the files in a given directory to a
> certain user?

Google