Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > Windows Server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-23-2008, 08:27 PM
=?Utf-8?B?TWFyayBI?=
 
Posts: n/a
lanman shares

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
Reply With Quote
  #2 (permalink)  
Old 07-23-2008, 09:07 PM
Pegasus \(MVP\)
 
Posts: n/a
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


Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 06:02 AM
=?Utf-8?B?TWFyayBI?=
 
Posts: n/a
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
>
>
>

Reply With Quote
  #4 (permalink)  
Old 07-24-2008, 06:25 AM
Pegasus \(MVP\)
 
Posts: n/a
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
>>
>>
>>



Reply With Quote
  #5 (permalink)  
Old 07-24-2008, 09:59 AM
=?Utf-8?B?TWFyayBI?=
 
Posts: n/a
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
> >>
> >>
> >>

>
>
>

Reply With Quote
  #6 (permalink)  
Old 07-24-2008, 12:56 PM
Pegasus \(MVP\)
 
Posts: n/a
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
>> >>
>> >>
>> >>

>>
>>
>>



Reply With Quote
  #7 (permalink)  
Old 07-24-2008, 08:08 PM
=?Utf-8?B?TWFyayBI?=
 
Posts: n/a
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
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > Windows Server


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:47 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109