lanman shares

  • Thread starter Thread starter Mark H
  • Start date Start date
M

Mark H

Guest
Hi I want to move some shares from one 2003 server to another 2003 server!
I can sort this out with robocopy keeping all permisions and properties! but
if I export the lanman shares registry entry from the old server, to import
to the new server, it comtains some shares that do not exist on the new
server? so question is how do I edit the reg file to remove unwated shares?
Thanks
Jack
 
Re: lanman shares


"Mark H" <MarkH@discussions.microsoft.com> wrote in message
news:195FAA56-BE5A-4504-AAFE-A168DCA7B8F2@microsoft.com...
> Hi I want to move some shares from one 2003 server to another 2003 server!
> I can sort this out with robocopy keeping all permisions and properties!
> but
> if I export the lanman shares registry entry from the old server, to
> import
> to the new server, it comtains some shares that do not exist on the new
> server? so question is how do I edit the reg file to remove unwated
> shares?
> Thanks
> Jack


Either you press the Delete key on the corresponding registry
value, or you apply the stock-standard command
net use ShareName /del
 
Re: lanman shares

Hi
Thanks for the reply, problem is there are about 2000 shares and about 1000
I dont want, might take some time.

Mark H

"Pegasus (MVP)" wrote:

>
> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
> news:195FAA56-BE5A-4504-AAFE-A168DCA7B8F2@microsoft.com...
> > Hi I want to move some shares from one 2003 server to another 2003 server!
> > I can sort this out with robocopy keeping all permisions and properties!
> > but
> > if I export the lanman shares registry entry from the old server, to
> > import
> > to the new server, it comtains some shares that do not exist on the new
> > server? so question is how do I edit the reg file to remove unwated
> > shares?
> > Thanks
> > Jack

>
> Either you press the Delete key on the corresponding registry
> value, or you apply the stock-standard command
> net use ShareName /del
>
>
>
 
Re: lanman shares

Do you have a list of the ones you want or of the ones you
don't want? If you have either of them then you can perform
the cleanup action by scripting.


"Mark H" <MarkH@discussions.microsoft.com> wrote in message
news:5D639E68-B070-4553-AF05-A1F0FFD6582C@microsoft.com...
> Hi
> Thanks for the reply, problem is there are about 2000 shares and about
> 1000
> I dont want, might take some time.
>
> Mark H
>
> "Pegasus (MVP)" wrote:
>
>>
>> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
>> news:195FAA56-BE5A-4504-AAFE-A168DCA7B8F2@microsoft.com...
>> > Hi I want to move some shares from one 2003 server to another 2003
>> > server!
>> > I can sort this out with robocopy keeping all permisions and
>> > properties!
>> > but
>> > if I export the lanman shares registry entry from the old server, to
>> > import
>> > to the new server, it comtains some shares that do not exist on the new
>> > server? so question is how do I edit the reg file to remove unwated
>> > shares?
>> > Thanks
>> > Jack

>>
>> Either you press the Delete key on the corresponding registry
>> value, or you apply the stock-standard command
>> net use ShareName /del
>>
>>
>>
 
Re: lanman shares

Hi
Yes sort of I only wnat the shares with the drive letter n:\?
Would that be possible?

"Pegasus (MVP)" wrote:

> Do you have a list of the ones you want or of the ones you
> don't want? If you have either of them then you can perform
> the cleanup action by scripting.
>
>
> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
> news:5D639E68-B070-4553-AF05-A1F0FFD6582C@microsoft.com...
> > Hi
> > Thanks for the reply, problem is there are about 2000 shares and about
> > 1000
> > I dont want, might take some time.
> >
> > Mark H
> >
> > "Pegasus (MVP)" wrote:
> >
> >>
> >> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
> >> news:195FAA56-BE5A-4504-AAFE-A168DCA7B8F2@microsoft.com...
> >> > Hi I want to move some shares from one 2003 server to another 2003
> >> > server!
> >> > I can sort this out with robocopy keeping all permisions and
> >> > properties!
> >> > but
> >> > if I export the lanman shares registry entry from the old server, to
> >> > import
> >> > to the new server, it comtains some shares that do not exist on the new
> >> > server? so question is how do I edit the reg file to remove unwated
> >> > shares?
> >> > Thanks
> >> > Jack
> >>
> >> Either you press the Delete key on the corresponding registry
> >> value, or you apply the stock-standard command
> >> net use ShareName /del
> >>
> >>
> >>

>
>
>
 
Re: lanman shares

The simplest solution would be to run the command

net share | find /i "N:\" > c:\shares.txt

then massage c:\Shares.txt in order to turn it into a sequence
of commands such as

net share Accounting="N:\SharedData\Accounting"

so that you can run it as a batch file on the new server.


"Mark H" <MarkH@discussions.microsoft.com> wrote in message
news:912C570C-BB5E-4B85-AD75-D09477E91E67@microsoft.com...
> Hi
> Yes sort of I only wnat the shares with the drive letter n:\?
> Would that be possible?
>
> "Pegasus (MVP)" wrote:
>
>> Do you have a list of the ones you want or of the ones you
>> don't want? If you have either of them then you can perform
>> the cleanup action by scripting.
>>
>>
>> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
>> news:5D639E68-B070-4553-AF05-A1F0FFD6582C@microsoft.com...
>> > Hi
>> > Thanks for the reply, problem is there are about 2000 shares and about
>> > 1000
>> > I dont want, might take some time.
>> >
>> > Mark H
>> >
>> > "Pegasus (MVP)" wrote:
>> >
>> >>
>> >> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
>> >> news:195FAA56-BE5A-4504-AAFE-A168DCA7B8F2@microsoft.com...
>> >> > Hi I want to move some shares from one 2003 server to another 2003
>> >> > server!
>> >> > I can sort this out with robocopy keeping all permisions and
>> >> > properties!
>> >> > but
>> >> > if I export the lanman shares registry entry from the old server, to
>> >> > import
>> >> > to the new server, it comtains some shares that do not exist on the
>> >> > new
>> >> > server? so question is how do I edit the reg file to remove unwated
>> >> > shares?
>> >> > Thanks
>> >> > Jack
>> >>
>> >> Either you press the Delete key on the corresponding registry
>> >> value, or you apply the stock-standard command
>> >> net use ShareName /del
>> >>
>> >>
>> >>

>>
>>
>>
 
Re: lanman shares

Thank you Pegasus,
I will try this out tomorow, and post the results, but many thanks for the
help so far.
Mark H

"Pegasus (MVP)" wrote:

> The simplest solution would be to run the command
>
> net share | find /i "N:\" > c:\shares.txt
>
> then massage c:\Shares.txt in order to turn it into a sequence
> of commands such as
>
> net share Accounting="N:\SharedData\Accounting"
>
> so that you can run it as a batch file on the new server.
>
>
> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
> news:912C570C-BB5E-4B85-AD75-D09477E91E67@microsoft.com...
> > Hi
> > Yes sort of I only wnat the shares with the drive letter n:\?
> > Would that be possible?
> >
> > "Pegasus (MVP)" wrote:
> >
> >> Do you have a list of the ones you want or of the ones you
> >> don't want? If you have either of them then you can perform
> >> the cleanup action by scripting.
> >>
> >>
> >> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
> >> news:5D639E68-B070-4553-AF05-A1F0FFD6582C@microsoft.com...
> >> > Hi
> >> > Thanks for the reply, problem is there are about 2000 shares and about
> >> > 1000
> >> > I dont want, might take some time.
> >> >
> >> > Mark H
> >> >
> >> > "Pegasus (MVP)" wrote:
> >> >
> >> >>
> >> >> "Mark H" <MarkH@discussions.microsoft.com> wrote in message
> >> >> news:195FAA56-BE5A-4504-AAFE-A168DCA7B8F2@microsoft.com...
> >> >> > Hi I want to move some shares from one 2003 server to another 2003
> >> >> > server!
> >> >> > I can sort this out with robocopy keeping all permisions and
> >> >> > properties!
> >> >> > but
> >> >> > if I export the lanman shares registry entry from the old server, to
> >> >> > import
> >> >> > to the new server, it comtains some shares that do not exist on the
> >> >> > new
> >> >> > server? so question is how do I edit the reg file to remove unwated
> >> >> > shares?
> >> >> > Thanks
> >> >> > Jack
> >> >>
> >> >> Either you press the Delete key on the corresponding registry
> >> >> value, or you apply the stock-standard command
> >> >> net use ShareName /del
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>
 
Back
Top