Solved

NT SAM file

Posted on 2000-03-19
9
842 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
Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
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…
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…

743 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

14 Experts available now in Live!

Get 1:1 Help Now