Powershell Script: Search 3 files on all active Windows Servers within a Domain
Posted on 2012-08-22
I'm looking for a VBS Script or Windows Powershell Script how does do the following:
1. Search per LDAP all Windows Servers within a domain.
2. Pings' the found Windows Servers.
and writes depending on success result or not
2 files Servers.txt & ServersInactive.txt with the Servername.
3. Read the Servers.txt and search's through all server in the list for
all admin-share's (c$,d$, etc) and searches in this shares for 3 files
(abc.txt,def.txt,ghi.doc) and writes the result into a file output.txt
in the following format:
Date&Time, Servername, Path, filename.