Share.vbs – Windows CMD Command

List or edit a file share or print share (on any computer)

Although missing from recent Resource Kits, this VBS script does still work under recent versions of Windows. The preferred method for creating shares is the RMTShare command, which can also grant permissions.

Examples:

List the shares on the machine \\Frodo

cscript Share.vbs /L /s Frodo

Create a file share called “scratch” on the local machine:

cscript Share.vbs /c /n scratch /p "c:\my shared files" /t Disk /v "project files"

Delete the share named “scratch” on the machine \\Frodo

cscript Share.vbs /d /n scratch /s Frodo

You may also like...

1 Response

  1. replicamagic_co says:

    it is a top quality internet site

Leave a Reply

Your email address will not be published.