Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

0xc000142 Issue during oobe pass


  • Please log in to reply
10 replies to this topic

#1
ZeroStack

ZeroStack
  • Member
  • 9 posts
  • Joined 12-July 12
  • OS:Windows 7 x64
  • Country: Country Flag
I seem to have an issue that I cannot fix directly.... I will try my best to describe it - but I am currently stumped.

I have two answer files that process my unattended windows installation for our image. In the OOBE answer file, under the first logon commands: I have 5 VBS scripts that get called.

After the 1st script finishes, the computer restarts. Then it calls 4 other scripts before restarting. My logs show that it skips/errors on scripts #2, #3, #4 and then it completes script #5... I then had to record the oobe phase with my phone because the error is so quick!

I am calling my vbs with cscript, so:
<SynchronousCommand wcm:action="add">
  <Order>2</Order> 
  <CommandLine>C:\Windows\System32\cscript.exe "C:\hpcompaq\commands\test.vbs"</CommandLine> 
  <Description>test</Description> 
  <RequiresUserInput>false</RequiresUserInput> 
  </SynchronousCommand>

I end up getting a cscript error ( which I viewed via my paused video):

The application was unable to start correctly (0xc0000142). Click OK to close the application.

When I test the script not via my answer file and using cscript, it does not error on me and performs the task as required. The script modifies our description field in our Active Directory after the computer is named, and attached to the domain.

Any ideas? I know everything works as my 64 bit image calls the same scripts and has no issues...


How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,970 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

Is there anything recorded in Event Viewer? Are you able to post your VBS?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#3
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
you probably don't need the "" with no blank spaces but if you do add then use this instead &quot; in place of
also remove the <RequiresUserInput> since you are putting in a default value
You can capture the logs in Panther folder and be able to see if it is setup error or your script http://www.msfn.org/...486#entry888486
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#4
ZeroStack

ZeroStack
  • Member
  • 9 posts
  • Joined 12-July 12
  • OS:Windows 7 x64
  • Country: Country Flag
@Tripredacus : I couldnt find anything in the event viewer once I got to my desktop. I dont think its the VBS as there is nothing being called that would require a 64 bit or 32 bit OS. ( plus it works when I test the script outside of the answer files - in a 32 bit OS)

@maxXPsoft I will have to re-sysprep it during my testing today to look in that panther location. Is this located: C:\windows\Panther ? Setuperr.txt ?

I have looked there already, and it said something about a DHCP issue with IPv6... but I will have to reconfirm as that might be from a previous sysprep.

#5
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
C:\windows\Panther
usually the errors are within setupact.log and easy to find. Best to capture ASAP after error so it will be in very bottom.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#6
ZeroStack

ZeroStack
  • Member
  • 9 posts
  • Joined 12-July 12
  • OS:Windows 7 x64
  • Country: Country Flag

C:\windows\Panther
usually the errors are within setupact.log and easy to find. Best to capture ASAP after error so it will be in very bottom.



Okay, I just syspreped my test machine, and it did NOT pick up its tasks where it left off of after it restarted.... So:

First logon commands:
1) rename - succeeded
2) Restart -suceeded
3) do scripts 2-5 - Failed!

I have the login count set to the proper amount under the local administrator, so that isnt the issue. I also checked the panther file and could not find anything jump out at me... but here is the log:
Attached File  setupact.txt   253.63KB   5 downloads


SIDE QUESTION:

What are the best practices when calling scripts? Using a batch file that calls my script? Call cscript which calls my vbs? Call my vbs directly? 95% of all my scripts ran during FirstLogonCommands are vbs'.

Edited by ZeroStack, 06 November 2012 - 10:04 AM.


#7
ZeroStack

ZeroStack
  • Member
  • 9 posts
  • Joined 12-July 12
  • OS:Windows 7 x64
  • Country: Country Flag
Okay Update:

I changed them to all use cscript ( except the batch script in my FirstlogonCommands) and I am back to square one....:

1st script: Rename - passed
2nd script modify active directory description on computer's information pulled from DHCP... - SKIPPED ?!
3rd script Activate some software keys - passed
4th do a post driver installation fix - passed
5th do some file deletions - passed

I know/have troubleshooting & debugging skills - I just came on here because I was confused that it worked on 64 bit, but not 32 bit. :/

I have logging set up in that script that writes to a file once specific events occur and yet it seems like the script is skipped entirely...

I will do some debugging steps via that script - any ideas??

#8
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Only error I seen was
Warning SYSPRP SPPNP: Error 0xE000020B occurred while adding device Root\LEGACY_MPIO\0000 to the device info set.

Nothing I see would cause failure so must be somehow in the script. Like you said works on 64 bit, but not 32 bit is strange.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#9
ZeroStack

ZeroStack
  • Member
  • 9 posts
  • Joined 12-July 12
  • OS:Windows 7 x64
  • Country: Country Flag
Is there any reason to use my firstlogoncommands to call a batch script that call my vbs? Or calling cscript to call my vbs?

#10
ZeroStack

ZeroStack
  • Member
  • 9 posts
  • Joined 12-July 12
  • OS:Windows 7 x64
  • Country: Country Flag
Figured it out. For some reason the scheduled reboot in my first script breaks everything after that.... Like it doesnt know where to come back to after it restarts....

Thanks for the help guys / letting me just talk it out.

#11
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Sometimes that's what it takes talking it out to find problem.
If you used Audit mode you can reboot with a 2nd xml if you really needed to do that
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users