Re: Remotely Enumerate Network Shares / Permissions
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 18 Jul 2007 09:17:29 +0200
"dggcoop" <dggcoop@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DBE64D8C-AFF9-4ED3-8DC0-3D49491A6CDB@xxxxxxxxxxxxxxxx
I am trying to find an easy way (script) to gather the following
information
from a lot of servers (mostly 2003) REMOTELY :
-Network Shares
-Share Permissions
-What Users/Groups are part of the Administrators group on the server
I know I can do this manually with the Shares MMC snap-in, but I would
really like to be able to run a script that outputs this information into
an
file that is easily imported into Excel.
Any ideas?
To enumerate network shares you could use the command "net share".
To look at share permissions you could use the command "net share
sharename".
To examine the Administrator group you could use the command "net group
administrators".
To run these command on a remote machine you could use psexec.exe
(www.sysinternals.com).
Unfortunately the output generated by some of these commands
does not lend itself easily to automatic processing. If this is what
you had in mind then I recommend you repost your question in
a scripting newsgroup.
.
- Prev by Date: Re: WinServer2003: Telephony Service stops one second after starting
- Next by Date: Re: Authentication / Windows Deployment Services
- Previous by thread: Re: WinServer2003: Telephony Service stops one second after starting
- Next by thread: NTP time service not syncing
- Index(es):
Relevant Pages
|