| Author |
Message |
M_Hood
Guest
|
Posted:
Mon Dec 19, 2005 5:16 pm Post subject:
Searching for 1 Users files over entire network |
|
|
Hi, I have a problem on our Server 2003 network after introducing Disk
Quotas. The users are complaining that their disk quotas are full even though
they have very little in their personal home drives. This is because they
still have ownership of files that they saved elsewhere on the network, i.e.
in Admin folders etc.
I would like to know if their is a program or facility where I can scan the
entire network for files created by any one given user, then possibly provide
them with a printout of the various locations in which they have work spread
across the network.
This would make a great deal of difference to the way I am working at
present, so any thoughts / suggestions will be appreciated.
Thanks in advance. |
|
| Back to top |
|
 |
Jerold Schulman
Guest
|
Posted:
Tue Dec 20, 2005 5:16 pm Post subject:
Re: Searching for 1 Users files over entire network |
|
|
On Mon, 19 Dec 2005 06:25:01 -0800, M_Hood <MHood@discussions.microsoft.com> wrote:
| Quote: | Hi, I have a problem on our Server 2003 network after introducing Disk
Quotas. The users are complaining that their disk quotas are full even though
they have very little in their personal home drives. This is because they
still have ownership of files that they saved elsewhere on the network, i.e.
in Admin folders etc.
I would like to know if their is a program or facility where I can scan the
entire network for files created by any one given user, then possibly provide
them with a printout of the various locations in which they have work spread
across the network.
This would make a great deal of difference to the way I am working at
present, so any thoughts / suggestions will be appreciated.
Thanks in advance.
|
Using tip 8530 » Corrected version of SubInAcl.
in the 'Tips & Tricks' at http://www.jsifaq.com
Run
Owners.bat Owner \\Computer1\Share1 [\\computer2\SHare2 ... \\computerN\SHareN]
where Owner is in the form of Domain\User or builin\group etc....
The output is in Owners_RandomNumber.txt in the current directory.
@echo off
if {%2}=={} @echo Syntax: Owners Owner \\computer1\share1 [\\computer2\SHare2 ... \\computerN\SHareN]&goto :EOF
setlocal ENABLEDELAYEDEXPANSION
set report="Owners_%RANDOM%.txt"
set work="%TEMP%\Owners_%RANDOM%.TMP"
set owner=%1
shift
set owner=%owner:"=%
:loop
if {%1}=={} goto finish
set share=%1
shift
set share=%share:"=%
if not exist "%share%" goto err
SubInAcl /outputlog=%work% /noverbose /nostatistic /file "%share%"
for /f "tokens=1* Delims==" %%x in ('type %work%^|find "/owner"^|Find /i "%owner%"') do (
@echo "%share%","%%y">>%report%
)
for /f "Tokens=*" %%f in ('dir "%share%" /b /s /a') do (
SubInAcl /outputlog=%work% /noverbose /nostatistic /file "%%f"
for /f "tokens=1* Delims==" %%x in ('type %work%^|find "/owner"^|Find /i "%owner%"') do (
@echo "%%f","%%y">>%report%
)
)
goto loop
:err
@echo "%share%","NOT FOUND">>%report%
goto loop
:finish
del /q %work%
endlocal
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com |
|
| Back to top |
|
 |
M_Hood
Guest
|
Posted:
Tue Dec 20, 2005 5:16 pm Post subject:
Re: Searching for 1 Users files over entire network |
|
|
Hi, thanks for the reply. I dont mean to sound rude, but that all looks
extremely lengthy and technical to me. I was hoping either for a script of a
couple of lines, or possibly a program that could be bought / downloaded.
Does anyone know where I can obtain a program like this ?
Thanks again.
"Jerold Schulman" wrote:
| Quote: | On Mon, 19 Dec 2005 06:25:01 -0800, M_Hood <MHood@discussions.microsoft.com> wrote:
Hi, I have a problem on our Server 2003 network after introducing Disk
Quotas. The users are complaining that their disk quotas are full even though
they have very little in their personal home drives. This is because they
still have ownership of files that they saved elsewhere on the network, i.e.
in Admin folders etc.
I would like to know if their is a program or facility where I can scan the
entire network for files created by any one given user, then possibly provide
them with a printout of the various locations in which they have work spread
across the network.
This would make a great deal of difference to the way I am working at
present, so any thoughts / suggestions will be appreciated.
Thanks in advance.
Using tip 8530 » Corrected version of SubInAcl.
in the 'Tips & Tricks' at http://www.jsifaq.com
Run
Owners.bat Owner \\Computer1\Share1 [\\computer2\SHare2 ... \\computerN\SHareN]
where Owner is in the form of Domain\User or builin\group etc....
The output is in Owners_RandomNumber.txt in the current directory.
@echo off
if {%2}=={} @echo Syntax: Owners Owner \\computer1\share1 [\\computer2\SHare2 ... \\computerN\SHareN]&goto :EOF
setlocal ENABLEDELAYEDEXPANSION
set report="Owners_%RANDOM%.txt"
set work="%TEMP%\Owners_%RANDOM%.TMP"
set owner=%1
shift
set owner=%owner:"=%
:loop
if {%1}=={} goto finish
set share=%1
shift
set share=%share:"=%
if not exist "%share%" goto err
SubInAcl /outputlog=%work% /noverbose /nostatistic /file "%share%"
for /f "tokens=1* Delims==" %%x in ('type %work%^|find "/owner"^|Find /i "%owner%"') do (
@echo "%share%","%%y">>%report%
)
for /f "Tokens=*" %%f in ('dir "%share%" /b /s /a') do (
SubInAcl /outputlog=%work% /noverbose /nostatistic /file "%%f"
for /f "tokens=1* Delims==" %%x in ('type %work%^|find "/owner"^|Find /i "%owner%"') do (
@echo "%%f","%%y">>%report%
)
)
goto loop
:err
@echo "%share%","NOT FOUND">>%report%
goto loop
:finish
del /q %work%
endlocal
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
|
|
|
| Back to top |
|
 |
Jerold Schulman
Guest
|
Posted:
Wed Dec 21, 2005 12:39 am Post subject:
Re: Re: Searching for 1 Users files over entire network |
|
|
NO!
On Tue, 20 Dec 2005 05:48:03 -0800, M_Hood <MHood@discussions.microsoft.com> wrote:
| Quote: | Hi, thanks for the reply. I dont mean to sound rude, but that all looks
extremely lengthy and technical to me. I was hoping either for a script of a
couple of lines, or possibly a program that could be bought / downloaded.
Does anyone know where I can obtain a program like this ?
Thanks again.
"Jerold Schulman" wrote:
On Mon, 19 Dec 2005 06:25:01 -0800, M_Hood <MHood@discussions.microsoft.com> wrote:
Hi, I have a problem on our Server 2003 network after introducing Disk
Quotas. The users are complaining that their disk quotas are full even though
they have very little in their personal home drives. This is because they
still have ownership of files that they saved elsewhere on the network, i.e.
in Admin folders etc.
I would like to know if their is a program or facility where I can scan the
entire network for files created by any one given user, then possibly provide
them with a printout of the various locations in which they have work spread
across the network.
This would make a great deal of difference to the way I am working at
present, so any thoughts / suggestions will be appreciated.
Thanks in advance.
Using tip 8530 » Corrected version of SubInAcl.
in the 'Tips & Tricks' at http://www.jsifaq.com
Run
Owners.bat Owner \\Computer1\Share1 [\\computer2\SHare2 ... \\computerN\SHareN]
where Owner is in the form of Domain\User or builin\group etc....
The output is in Owners_RandomNumber.txt in the current directory.
@echo off
if {%2}=={} @echo Syntax: Owners Owner \\computer1\share1 [\\computer2\SHare2 ... \\computerN\SHareN]&goto :EOF
setlocal ENABLEDELAYEDEXPANSION
set report="Owners_%RANDOM%.txt"
set work="%TEMP%\Owners_%RANDOM%.TMP"
set owner=%1
shift
set owner=%owner:"=%
:loop
if {%1}=={} goto finish
set share=%1
shift
set share=%share:"=%
if not exist "%share%" goto err
SubInAcl /outputlog=%work% /noverbose /nostatistic /file "%share%"
for /f "tokens=1* Delims==" %%x in ('type %work%^|find "/owner"^|Find /i "%owner%"') do (
@echo "%share%","%%y">>%report%
)
for /f "Tokens=*" %%f in ('dir "%share%" /b /s /a') do (
SubInAcl /outputlog=%work% /noverbose /nostatistic /file "%%f"
for /f "tokens=1* Delims==" %%x in ('type %work%^|find "/owner"^|Find /i "%owner%"') do (
@echo "%%f","%%y">>%report%
)
)
goto loop
:err
@echo "%share%","NOT FOUND">>%report%
goto loop
:finish
del /q %work%
endlocal
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
|
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com |
|
| Back to top |
|
 |
|
|
|
|