PDA

View Full Version : Take ownsership command line - windows 2000


Liquid_N2
11-04-03, 04:07 AM
Hi all,

Can anyone help me out of a Jam, we have thousands of users on our system and i need a command line to which these users can take ownsership of files on login.

The deal is, they each have their own space on the network which they map to drive G. The problem is, many of these files are down as the wrong owner. Which is causing us quite a few problems and im looking to run, on login, a script that will automatically take ownership of their G drive and all its contents.

Any help is greatly appreciated.

Thanks.

redduc900
11-04-03, 08:33 AM
SUBINACL in the W2k Resource Kit looks like it might be able to do this...

subinacl /noverbose /file \\server\share\dir /setowner=whoever
subinacl /noverbose /subdirectories \\server\share\dir\* /setowner=whoever

If you don't have the W2k RK, the subinacl.exe in the Windows Server 2003 RK (free) might possibly work on W2k as well...

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en :)

Liquid_N2
11-04-03, 06:21 PM
Cheers matey, ill give that a try.