/build/static/layout/Breadcrumb_cap_w.png

Windows 7 Post-installation Black Screen

Hey,

I am attempting to deploy a Windows 7 syspreped WIM image I created and I can't seem to get the thing to finish it's postinstallation task.

The code in the task is very simple, it's just a bunch of xcopies, here is the code.

xcopy /Y "Inventory.vbs" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"

xcopy /Y "Register.bat" "C:\Users\Administrator\Desktop"

xcopy /S /E /I source c:\source

xcopy /Y /I "WLAN.exe" C:\Wlan\

xcopy /Y /I "file.xml" C:\Wlan\

That's it. After the sysprep finishes and it looks like the post installation task is starting the screen just goes black. You can move and see your mouse but do nothing else. ALT+CTRL+DEL doesn't work, nothing. 

If I do a hard restart the computer boots back up fine, but didn't perform the post install task. The files are still located in C:\KACE and I have run my script manually. 

Any idea what's going on here? What am I missing?

Thanks!


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: dugullett 11 years ago
Red Belt
3

I ran into the same issue with using xcopy. I'm not sure if this will fix your problem as well.

http://www.itninja.com/question/windows-7-post-installs

Another thing it could be is if you uploaded a .bat as a post install app then make sure you are calling that .bat file in your command line.


Comments:
  • Are you putting these files in the c:\kace as a mid level task?
    I found if I move the files local as a mid level task from the kace2000 petemp, mapped as w: on my boot environment to the c drive then xcopy works as a post task.

    If you know files are in c:\kace try putting that in front of the source location (xcopy c:\kace\myfile). also tell machine not reboot after deployment once and go look in c:\kace prior to rebooting to be sure they are there before the xcopy batch running - SMal.tmcc 11 years ago
  • I'll give that converter a try, and I am calling the .bat file in the command line. - DanGreenbrier 11 years ago
Posted by: DanGreenbrier 11 years ago
Orange Belt
2

So I commented out the first two lines

xcopy /Y "Inventory.vbs" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"

xcopy /Y "Register.bat" "C:\Users\Administrator\Desktop"

And it seems to work without them. Are those lines wrong somehow? Could there be some sort of rights issue im missing?

 

 

 


Comments:
  • Maybe add a pause in there after each one to see if it prompting you with an error. - dugullett 11 years ago
  • Does the administrators desktop actually exist at this point? - SMal.tmcc 11 years ago
    • I wanted to put two links on the administrator desktop but it did not exist yet. The way I got that to work was to have the administrator autologin in my sysprep file and ran the copy as a runonce
      added this line to the end of my post task file
      start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v iconcopy /d "xcopy c:\windows\w2d\links\*.* c:\users\administrator\desktop /q /y" /f - SMal.tmcc 11 years ago
      • hmm this makes alot of sense I think this is what it might be. In that case the post install converter might fix things, ill see on this next deployment. - DanGreenbrier 11 years ago
  • If the converter does not do it, you can also add auto login to your post task and do a restart

    xcopy /Y "Inventory.vbs" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"

    xcopy /Y "Register.bat" "C:\windows\temp"

    xcopy /S /E /I source c:\source

    xcopy /Y /I "WLAN.exe" C:\Wlan\

    xcopy /Y /I "file.xml" C:\Wlan\

    start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f
    start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 1 /f
    start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d administrator /f
    start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d ************ /f

    start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v iconcopy /d "xcopy c:\windows\temp\register.bat c:\users\administrator\desktop /q /y" /f

    cmd /c md "%allusersprofile%\Dell\KACE" & cmd /c move /y "%systemdrive%\KACE\k2000_deployment_info.conf" "%allusersprofile%\Dell\KACE\k2000_deployment_info.conf"

    start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v kclean /d "c:\kcleanup.exe"

    shutdown -r -t 1 -f - SMal.tmcc 11 years ago
  • I can confirm that the issue is this line

    xcopy /Y "Register.bat" "C:\Users\Administrator\Desktop"

    I'm gonna try and just copy it to All Users desktop first in an attempt to keep the code simple and clean. Assuming that All Users desktop does exist. If not I think your solution would work just fine, if the convert doesn't. Thanks! - DanGreenbrier 11 years ago
  • all users does exist at that time "c:\users\public\desktop" - SMal.tmcc 11 years ago
Posted by: SMal.tmcc 11 years ago
Red Belt
0

Is this the only post install task?


Comments:
  • Ya this is my only post install task - DanGreenbrier 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ