Solved

NT SAM file

Posted on 2000-03-19
9
854 Views
Last Modified: 2013-12-28
How can i backup the SAM file of a PDC on to a floppy disk without getting the message that a sharing violation has occured.



0
Comment
Question by:Notorious
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 4

Expert Comment

by:tmack
ID: 2633926
ALthought I have never had to do this I would imagine that as long as users are logged on to the network you will not be able to copy this file. I would suggest that everyone log off and you copy it then or just set up your back up to pick it up in the off hours if you have off hours.

T
0
 
LVL 7

Accepted Solution

by:
jjeff1 earned 10 total points
ID: 2633951
You can boot into DOS with a bootable floppy and copy the file if you file system is FAT.

But a much better idea is to use RDISK.EXE to create an emergency repair disk. This is a good thing to have anyway.

Just hit Start -> Run, and type in rdisk. Click the "update repair info" button. This placed the SAM, among other things, into the C:\winnt\repair directory. Then it prompts you to make an emergency repair disk with a copy of these files.

If your system ever needs a repair install of NT, that disk is a good thing to have.

If your SAM is too large to fit on one disk, you can simple copy the contents of the C:\winnt\repair directory whereever you want it.

Jeff
0
 
LVL 5

Expert Comment

by:carmine
ID: 2640614
jjeff1 is almost there, but...

For rdisk to backup the SAM hive, you have to run it with the /s parameter.

rdisk /s

If the SAM is too large for a floppy, then run:

rdisk /s-

This will backup the SAM (and the rest of the registry) to the "%SystemRoot%\Repair" directory from where you can copy it to another server, or include it in your tape backup.

Regards
Mark
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 

Author Comment

by:Notorious
ID: 2660372
I used the RDisk /s option but it only backed up the following autoexec.nt, config.nt, default._, ntuser.da_, sam._,
security._, setup, software._ and system._ Of which sam._ is alot small than the sam file on the server. What if anything has not happened.
0
 
LVL 5

Expert Comment

by:carmine
ID: 2700988
Rdisk, compresses the hives (hence the underscore for the extension) so that they are more likely the fit on a floppy.

The NT reapair process will expand them when you need them!  Alternatively, you can run the expand command:
expand a:\sam._ c:\temp\sam.

regards
Mark
0
 
LVL 5

Expert Comment

by:carmine
ID: 2700992
PS: How come you've accepted an answer if you're still not happy?

Mark
0
 

Expert Comment

by:DoubleJ2003
ID: 7891539
The above described solutions will not help you solve your problem.
The accepted answer will only backup the 'repair'-sam with installation-admin-account.
The other answer of logging out all user --> than you will need to log of yourself too....tell me, how are you able to copy the file without logging on???

To backup the sam-file in use, you have two options:
1) create a bootdisk, which also contains the NTFSDOS-executable (look at http://ramattack.mailru.com/ubd/indexen.html).
Restart your server with this bootdisk and when NTFSDOS has been run, you can get access to your NTFS-drives.
Copy the sam-file to a diskette(default path=\winnt\system32\config\).
2) another option is to do a search on the internet for the tool: ForceCopy.exe .
Using this tool you will be able to copy the sam-file in a special way. When you entered the syntax, the tool will create a copy-script, which will be run at the next bootup of the server, before the system locks the sam-file.

Good luck.....
Double J
0
 

Expert Comment

by:DoubleJ2003
ID: 7891666
Above mentioned site has a lot of dead links: try this one:
http://www.karimov.ru/ftp/ubd.zip 

Double J
0
 
LVL 5

Expert Comment

by:carmine
ID: 7891937
Sorry Double J you are wrong.  The file sam._ in the repair folder is updated with a copy of the current SAM every time you run rdisk.

I know! I've just restored the SAM from one domain to another using the repair folder.

If you have never run rdisk then it will indeed just contain the admin account created at install time.

Mark
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question