Search computers for a file extension using AD

  • Thread starter Thread starter Sol
  • Start date Start date
S

Sol

Hi

I would like to search 400 machines on a domain for a certain file type
(extension) using Active Directory, is this possible?

tia
Sol
 
I don't quite understand what are you trying to do, but I think this is not
possible. If you want to check certain file types on all pcs in a domain, no
you cant do this with AD since this information is not stored in AD.
 
Hi,

Sorry, I should have explained in more detail. I would like to search the C:
drives of all the machines that are on my domain for a certain file
extension, lets say, a (.zip) file. Is there a command that will allow this?
Probably a silly question

tia
Sol


Dmitry Korolyov said:
I don't quite understand what are you trying to do, but I think this is not
possible. If you want to check certain file types on all pcs in a domain, no
you cant do this with AD since this information is not stored in AD.

--
Dmitry Korolyov [[email protected]]
MVP: Windows Server - Directory Services


Sol said:
Hi

I would like to search 400 machines on a domain for a certain file type
(extension) using Active Directory, is this possible?

tia
Sol
 
You cannot do this with ad, but you definitely can do this using scripts.

--
Dmitry Korolyov [[email protected]]
MVP: Windows Server - Directory Services


Sol said:
Hi,

Sorry, I should have explained in more detail. I would like to search the
C:
drives of all the machines that are on my domain for a certain file
extension, lets say, a (.zip) file. Is there a command that will allow
this?
Probably a silly question

tia
Sol


Dmitry Korolyov said:
I don't quite understand what are you trying to do, but I think this is not
possible. If you want to check certain file types on all pcs in a domain, no
you cant do this with AD since this information is not stored in AD.

--
Dmitry Korolyov [[email protected]]
MVP: Windows Server - Directory Services


Sol said:
Hi

I would like to search 400 machines on a domain for a certain file type
(extension) using Active Directory, is this possible?

tia
Sol
 
Hi,

Sorry, I should have explained in more detail. I would like to search the C:
drives of all the machines that are on my domain for a certain file
extension, lets say, a (.zip) file. Is there a command that will allow this?
Probably a silly question

tia
Sol


Dmitry Korolyov said:
I don't quite understand what are you trying to do, but I think this is not
possible. If you want to check certain file types on all pcs in a domain, no
you cant do this with AD since this information is not stored in AD.

--
Dmitry Korolyov [[email protected]]
MVP: Windows Server - Directory Services


Sol said:
Hi

I would like to search 400 machines on a domain for a certain file type
(extension) using Active Directory, is this possible?

tia
Sol
See tip 5898 » Freeware ADFind in the 'Tips & Tricks' at http://www.jsifaq.com

@echo off
setlocal
for /f "Tokens=1*" %%a in ('adfind -default -noctl -nodn -f "objectcategory=computer" name^|find "name:"') do (
for /f "Tokens=*" %%f in ('dir /b /s /a \\%%b\c$\*.zip') do (
@echo %%b %%f
)
)
endlocal

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Hi Jerold,

That's just what I was looking for.

thks
[/QUOTE]
[/QUOTE]
See tip 5898 » Freeware ADFind in the 'Tips & Tricks' at http://www.jsifaq.com

@echo off
setlocal
for /f "Tokens=1*" %%a in ('adfind -default -noctl -nodn -f[/QUOTE]
"objectcategory=computer" name^|find "name:"') do (
 
Back
Top