Tip

Forcing the Creation of Up-to-Date ERDs

Forcing the Creation of Up-to-Date ERDs
From Windows NT Troubleshooting by Kathy Ivens, Osborn McGraw-Hill, 1998

Unless your network is made up of the most phenomenally responsible users in the world, the computers on your network probably don't have a current ERD. You can force the creation of up-to-date ERD information for computers on your network with the Windows NT scheduler (the AT command).

The process involves several steps, and you can write a batch file (and schedule it with the AT command) that performs them all.

You'll need a share on the server (it should be a hidden share for safety) to hold the repair information for each computer, and you'll need a subdirectory in that share for each target computer for which you are keeping repair information.

For this example, the server share is named ERDShare$, and subdirectories under the share are created for each target workstation.

The AT command is AT<targetcomputer>01:00/interactive/every:M,T,W,Th,F,S,Su ServerNameERDShare$MakeERD.bat.

The contents of MakeERD.bat should be similar to this:

    Requires Free Membership to View

%windir%system32rdisk.exe /s-
net use x: /delete
net use x: ServerNameERDShare$/persistent:no
if not exist x:%targetname% md x:%targetname%
Copy %SystemRoot%repair*.* X:%targetname%*.*
net use x: /delete
exit
where %targetname% is the subdirectory for the target computer under the ERD share on the server. Keep in mind that the /s switch for rdisk tells the program to copy the SAM.

To create the actual ERD for a computer, just format a diskette on your server and copy the files from the %targetname% subdirectory.

There are a couple of things to be aware of before you rush to create this handy fuction:

  • Use full path names for all processes and steps.
  • Create a user (with administrative privileges) for this process and give that user a password that never expires.
  • Be sure the scheduler runs under the context of an administrative user.
  • Do not use the system account-it has no network access for copying files, and therefore the last step of the batch file will fail (the copy across the network to your server).

  • This was first published in November 1999

    There are Comments. Add yours.

     
    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.