Google
WWW http://internetfixes1.brinkster.net

Visit our Quick Over View of this Remote Service.


Tip
Subject Content

59
Publish shared folders with a script

When you're using Active Directory on your network, you can publish all shared folders in the

directory. This allows users to browse Active Directory instead of the old browser service.



You can use the Active Directory Users And Computers console to publish the shared folder in the

directory.



Simply open the console and expand the OU or domain where you want to publish the share.

On the Action menu, select New and then click the Shared Folder.

Type the name you want to give to the share, type the network path to the share, and click OK.



You can also write your own scripts, which can do this automatically for you.



The hardest thing to do is to start from nothing. You'll get the idea much faster with a sample

script taken from Microsoft's Web site:



Set objComputer = GetObject ("LDAP://OU=Finance, DC=fabrikam,

DC=com")

Set objShare = objComputer.Create("volume", "CN=FinanceShare")

objShare.Put "uNCName", "\\atl-dc-02\FinanceShare"

objShare.Put "Description", "Public share for users in the

Finance group."

objShare.Put "Keywords", Array("finance", "fiscal", "monetary")

objShare.SetInfo



This script will publish the folder share as \\atl-dc-02\FinanceShare in the fabrikam.com > domain

under the Finance Organizational Unit in Active Directory as FinanceShare.

Page 59 of 237
First Previous Next Last