Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1595
  • Last Modified:

ntbackup command line to create ASR Floppy?


I have been reading about the ASR process have manually gone through steps and found that the ASR  (Asr.sif and Asrpnp.sif files) files are created in the C:\windows\system32\repair when you cancel when prompted for a floppy disk, is there a way to automate this ?

I have tried to research this for some time and have not found an answer, 500 points.

  • 2
  • 2
1 Solution
As you said, a quick web search dis not yield any results.
I do not know why Microsoft &Veritas do not provide a scheduled ASR option in their ntbackup program. A filemon.exe (from www.sysinternals.com) capture shows the file-system is accessed by a number of programs launched during ASR wizard by netbackup.exe or by each other:
Only few of these programs provide a basic help dialog when run with /? switch. They appear to do certain queries to get some O/S configuration, volumes information, etc. You can researh them separatelly, see if you can put togeter a batch file (not sure if that is possible as some may not be documented). In top of that, keep in mind that these programs may also be doing Registry queries (as a Regmon.exe capture would show)
Another daunting task would be to enable auditing of "process tracking" and see if that reports any swithces used by these processes. the risk is that, you may need to work a lot and finally not being able to put together a viable solution...
Unless an MS Developer or Escalation Engineer that is familiar with ASR at code-level replies to you... a potential workaround is to try to look for programs that will record your actions (e.g launch ntbackup and click on the ASR wizard screens) and replay them as needed (on your desired schedule).
Sorry could not be of more help. Good luck and if I find more I will return to this thread.
Should this issue become critical for your organization, feel free to open a $250 (or so) support case with Microsoft EPS - ask for SETUP team. You should claim a refund if they are not able to provide you a resolution, but caution: just make sure the support enginner sends an escalation subcase to Microsoft CPR/Escalation team in US, and please give them time to research it).
markpalinuxAuthor Commented:

Very good answer.

Do you think that a AutoIt script would be able to start the wizard and cancel when it ask for the floppy, thus creating the files?

would someone want to try and let me know.

Saw Ntbackup.exe calls the next 3 ASR programs in order. You can also execute them at command line, but asr_ldm.exe throws the error message below. When run manually, they generate some files (as you can see if you search by file modified today). Ntbackup may be hardcoded to prepare the terrain for the ASR programs, by opening and writing to some files (SIF included). The bad thing is that ntbackup /? does not provide any documented command line option for ASR.
asr_fmt /backup /context=ASR
asr_pfu.exe /backup /context=ASR
asr_ldm.exe /backup /context=ASR

"Logical Disk Manager ASR Utility Error":
The ASR state file cannot be accessed since the handle to the ASR state file is invalid.  Please check your documentation for additional information.
By running "handle -p ntbackup.exe" (handle.exe from www.sysinternals.com) you can see ntbackup.exe opens a handle to the asr.sif file (output below). So, there is some integration between ntbackup and ASR programs. Not sure if anybody can add more information to break down this inter-programs communication so we can run them at command prompt independently.

   1c: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
   3c: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
   a0: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
   ac: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
   c0: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
  20c: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
  28c: File          C:\WINDOWS\system32
  2a4: File          C:\WINDOWS\repair\asr.sif
  2b4: Section       \BaseNamedObjects\ShimSharedMemory
  2bc: File          C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9

I posted a question with Microsoft, asking about their recommandation to "Run ASR backup regularly, preferably by using automatic settings". I will get back to you should they respond.
Guidelines for Using ASR

I have not tried the autoit script yet, maybe next weeks, thanks for sharing.

markpalinuxAuthor Commented:


Thanks for all you help.

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now