Re: Sharing with script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Jamie Allison wrote:
Hi there,

On our windows werver 2003 we have two shares which are Y and Z drive but when the server is rebooted these shares go again and have to be re shared.

These drives are two external drives connected to the server and shared to allow all users read and write permissions.

Is it possibly to set these shares up by some script so if the server is rebooted noone needs to set them up again?

Thanks in advance

Jamie



you can use the PERSISTENT switch on net use to create the share.

NET USE y: [path] /PERSISTENT

greetings /\/\o\/\/
.



Relevant Pages

  • Re: The amazing disappearing VBA code
    ... That's because you've been providing them with mapped drives! ... first Access client to get an NT server was back in 1998. ... PublicData, ClientData, and so forth as your top-level shares, ... There's also the problem of Windows ...
    (microsoft.public.access.modulesdaovba)
  • Large file copy causes delayed write warning and off line
    ... All drives, firmware, patches, etc. are current. ... This cluster replaced a 2003 x86/32bit cluster we had set up for several years. ... The other day I was on the server console copying a single 25GB file from one drive to another. ... Then I started seeing 1069 errors Cluster Resource failed, again from shares on various drives. ...
    (microsoft.public.windows.server.clustering)
  • Re: Folders or partitions
    ... Actually SBS 2k3 provides Disk Quotas for Shares. ... In My Computer on Server ... > create as much logical drives as needed. ...
    (microsoft.public.windows.server.sbs)
  • Re: domain client login
    ... Usually when you log on to the server that ... whatever - when the shares are actually on the D:\ drive you get those ... > generate the MRxSmb error. ...
    (microsoft.public.win2000.active_directory)
  • Re: Problems w/ 2003 R2 Cluster failover
    ... server to server. ... When group 0 moves from one owner to another any shares are lost, ... array/3 logical drives on the NAS. ...
    (microsoft.public.windows.server.clustering)