PC Review


Reply
Thread Tools Rate Thread

copy a reg-key between two computers

 
 
Martin Rådbo
Guest
Posts: n/a
 
      23rd Nov 2005
Probably easy but I can't figure out how.

Two computers running Windows 2000 Server, pc1 and pc2, both domain
controllers for the same domain.
We often add a share (we share a folder) at pc1 with some permissions. I
would like a simple way of getting the same share to be added to pc2.

One way is to do it manually. Another way is to export the registry key
containing share information from pc1 and go to pc2 and import it. Both
methods needs a lot of manual work and it is easy to forget something.

One idéa is to use the regedit command in a batch file to first export from
pc1 and then import to pc2, but I do not know how to be able to run the
batch file from either computer and at the same time be able to reach the
other computers registry in the batch script.

Any other idea?

Regards
Martin Rådbo
Teknologia



 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      29th Nov 2005
On Wed, 23 Nov 2005 13:52:01 +0100, "Martin Rådbo" <(E-Mail Removed)> wrote:

>Probably easy but I can't figure out how.
>
>Two computers running Windows 2000 Server, pc1 and pc2, both domain
>controllers for the same domain.
>We often add a share (we share a folder) at pc1 with some permissions. I
>would like a simple way of getting the same share to be added to pc2.
>
>One way is to do it manually. Another way is to export the registry key
>containing share information from pc1 and go to pc2 and import it. Both
>methods needs a lot of manual work and it is easy to forget something.
>
>One idéa is to use the regedit command in a batch file to first export from
>pc1 and then import to pc2, but I do not know how to be able to run the
>batch file from either computer and at the same time be able to reach the
>other computers registry in the batch script.
>
>Any other idea?
>
>Regards
>Martin Rådbo
>Teknologia
>
>

Install REG.EXE from the Support Tools on the server CD-ROM to PC2.

Run the following on PC2.

@echo off
REG EXPORT \\PC1\HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares "%TEMP%\PC1Share.reg"
net stop LANMANSERVER
REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares /F
REG IMPORT "%TEMP%\PC1Share.reg"
net start LANMANSERVER
del /q "%TEMP%\PC1Share.reg"

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
same copy of xp on 2 computers? =?Utf-8?B?bWF4aW5lbnJpY2s=?= Windows XP General 45 25th Aug 2004 03:45 AM
One copy of XP 2 computers Woodchuck Windows XP Help 3 4th Apr 2004 06:09 PM
using one copy on 2 computers scott Windows XP Setup 6 2nd Oct 2003 04:27 PM
Re: Using Same copy of XP on 2 computers BobDelaney Windows XP Setup 0 6th Aug 2003 02:53 AM
Re: Using Same copy of XP on 2 computers Nicholas Windows XP Setup 0 6th Aug 2003 02:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 AM.