Solved

NT SAM file

Posted on 2000-03-19
9
845 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
 

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
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now