bsharath
asked on
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
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
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.
ASKER
I get this...
C:\>reg query "\\dev-chen-mrd100\HKLM\SY STEM\Curre ntControlS et\Service s\LanManSe
rver\Parameters" /v AutoShareWks 1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.
C:\>reg query "\\dev-chen-mrd100\HKLM\SY
rver\Parameters" /v AutoShareWks 1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.
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\CurrentC ontrolSet\ Services\L anManServe r\Paramete rs" /v AutoShareServer >>C:\computers.txt
Regards
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\CurrentC
Regards
ASKER
I get this
C:\>for /f %x in (c:\computers.txt) do reg query "\\%x\HKLM\SYSTEM\CurrentC ontr
olSet\Services\LanManServe r\Paramete rs" /v AutoShareServer >>C:\computers.txt
C:\>reg query "\\dev-chen-mrd100\HKLM\SY STEM\Curre ntControlS et\Service s\LanManSe
rver\Parameters" /v AutoShareServer 1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.
C:\>for /f %x in (c:\computers.txt) do reg query "\\%x\HKLM\SYSTEM\CurrentC
olSet\Services\LanManServe
C:\>reg query "\\dev-chen-mrd100\HKLM\SY
rver\Parameters" /v AutoShareServer 1>>C:\computers.txt
ERROR: The system was unable to find the specified registry key or value.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I get this,.
C:\>for /f %x in (c:\computers.txt) do reg query \\%x\HKLM\SYSTEM\CurrentCo ntro
lSet\Services\LanManServer \Parameter s /v AutoShareServer >>C:\computers.txt
C:\>reg query \\dev-chen-mrd100\HKLM\SYS TEM\Curren tControlSe t\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\ CurrentCon trolSet\Se rvices\Lan ManServer\
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
C:\>for /f %x in (c:\computers.txt) do reg query \\%x\HKLM\SYSTEM\CurrentCo
lSet\Services\LanManServer
C:\>reg query \\dev-chen-mrd100\HKLM\SYS
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\
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
ASKER
Any help....
ASKER
Any help...
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\CurrentC
1 values means Accessible, 0 means Not Accessible
Regards