Solved

NT SAM file

Posted on 2000-03-19
9
853 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
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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

840 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