Enumeration of shares using VBSCRIPT
From: David Doumani (ddoumani_at_doumaniweb.com)
Date: 02/03/05
- Next message: J Ford: "RE: Enumeration of shares using VBSCRIPT"
- Previous message: McKirahan: "Re: Output files moved by FTP to text file"
- Next in thread: J Ford: "RE: Enumeration of shares using VBSCRIPT"
- Reply: J Ford: "RE: Enumeration of shares using VBSCRIPT"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Feb 2005 10:40:57 -0500
I am trying to write a script to enumerate all the shares on a machine, it's
physical path and the permissions of the shares. I was using strKeyPath =
"SYSTEM\CurrentControlSet\Services\lanmanserver\Shares" for the enumeration
of the shares but it occured to me that I am getting shares that do not
exist since they used to just delete folders without removing the share
first... some sevrers have over 1000 shars that donot really exist. My
purpose is two fold here... 1) to generate a report of the shares,
permissions and physical paths for a DR document as well as 2) to use the
same document to recreate the shares after I delete the
"SYSTEM\CurrentControlSet\Services\lanmanserver\Shares" and "..\security"
paths to eliminate all the event log errors where it can not create a share
due to the physical path not being avialable.
Does anyone have a script that will enumerate all the active shares on a
machine that I can take a look at?
Thanks
David
- Next message: J Ford: "RE: Enumeration of shares using VBSCRIPT"
- Previous message: McKirahan: "Re: Output files moved by FTP to text file"
- Next in thread: J Ford: "RE: Enumeration of shares using VBSCRIPT"
- Reply: J Ford: "RE: Enumeration of shares using VBSCRIPT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|