Scan all the machines in a file if they can access all drives

Hi,

I have a file with machine names.Need to find if the domain administrator can log in to all the drives in the file and give results to a file.

Machine name   C$ accessable   D$ accessable   E$ accessable.

Regards
Sharath
LVL 11
bsharathAsked:
Who is Participating?
 
Alan Huseyin KayahanCommented:
         Interesting. It runs on my computer. Try this
             for /f %x in (c:\computers.txt)  do reg query \\%x\HKLM\SYSTEM\CurrentContr
olSet\Services\LanManServer\Parameters /v AutoShareServer  >>C:\computers.txt
0
 
Alan Huseyin KayahanCommented:
     Hi Sharath
           Administrative shares can not be partition specific, if  it is enabled, all partitions $ share will be enabled.
           for /f %x in (c:\computers.txt)  do reg query "\\%x\HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v AutoShareWks  >>C:\computers.txt
            1 values means Accessible, 0 means Not Accessible

Regards
0
 
ChiefITCommented:
There is a little program called Netshare. It is on the SysInternals web page from Microsoft. This utility will help you look at all your shares on the LAN and can tell you who has permissions to those files, if I am not mistaken.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
bsharathAuthor Commented:
I get this...

C:\>reg query "\\dev-chen-mrd100\HKLM\SYSTEM\CurrentControlSet\Services\LanManSe
rver\Parameters" /v AutoShareWks   1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.
0
 
Alan Huseyin KayahanCommented:
   Hi Sharath
            Above is for XP clients. For server OS (server 2003 etc), you should do the following.
             for /f %x in (c:\computers.txt)  do reg query "\\%x\HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v AutoShareServer  >>C:\computers.txt

Regards
0
 
bsharathAuthor Commented:
I get this

C:\>for /f %x in (c:\computers.txt)  do reg query "\\%x\HKLM\SYSTEM\CurrentContr
olSet\Services\LanManServer\Parameters" /v AutoShareServer  >>C:\computers.txt

C:\>reg query "\\dev-chen-mrd100\HKLM\SYSTEM\CurrentControlSet\Services\LanManSe
rver\Parameters" /v AutoShareServer   1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.
0
 
bsharathAuthor Commented:
I get this,.

C:\>for /f %x in (c:\computers.txt)  do reg query \\%x\HKLM\SYSTEM\CurrentContro
lSet\Services\LanManServer\Parameters /v AutoShareServer  >>C:\computers.txt

C:\>reg query \\dev-chen-mrd100\HKLM\SYSTEM\CurrentControlSet\Services\LanManSer
ver\Parameters /v AutoShareServer   1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.

C:\>reg query \\indiasophos\HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\
Parameters /v AutoShareServer   1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.


I have tried in 5 syatems
0
 
bsharathAuthor Commented:
Any help....
0
 
bsharathAuthor Commented:
Any help...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.