Torgeir
Wed Nov 03 08:57:30 CST 2004
AhBen wrote:
> Hi,
>
> I would like to run a script that will change a drives Sharing
> properties from "Do not share this folder" to "Share this folder"
> and set the required Shared Name.
>
> Any help would be appreciated.
Hi
WMI, ADSI, and RMTShare.exe can be used:
http://groups.google.com/groups?threadm=%237c9gxiUEHA.4064%40TK2MSFTNGP11.phx.gbl
If you need to change permissionn on the share, here is
more about that:
http://groups.google.com/groups?selm=%23%24XPl9RrEHA.3172%40TK2MSFTNGP10.phx.gbl
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx