Verify Network Shares

Verify Network Shares

Post by Crimson » Sat, 09 Apr 2005 11:36:53

I'm using the rmtshare command to get a list of shares on a server (rmtshare
/L /S servername > shares.txt). I'm trying to figure out how I can go about
writing a script that can be run at will to verify that these shares still
exist. I'm learning vbs as I go along, so I appreciate any help offered.

Verify Network Shares

Post by Rafael » Sat, 09 Apr 2005 14:51:20

Hi there,

Check this page:

hope it helps,


Verify Network Shares

Post by Mark-Allen » Sat, 09 Apr 2005 21:08:13


Also here is a link to another source of script tools:

And this is a link to the downloaded Script Center help file:

This has all the scripts from the Scripting area in it.

Hope this helps.

Mark-Allen Perry
ALPHA Systems
Marly, Switzerland


Verify Network Shares

Post by Crimson » Sun, 10 Apr 2005 10:51:40

Thanks to both of you for the links. However, I'm still stuck. Creating
the list of shares is easy enough. I just can't figure out a way to verify
them later. Is there something in Windows that is the equivalent of the
diff command in UNIX? Any other ideas? TIA.

Verify Network Shares

Post by Rafael » Sun, 10 Apr 2005 11:25:27

Alan Kaplan made a script to delete orphaned shares. Maybe you can modify
it to suit your needs: