KACE Product Support Question

Windows 7 Post-installation Black Screen

08/16/2012 6741 views


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?


Answer Summary:
0 Comments   [ + ] Show comments


Community Chosen Answer


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


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.

Answered 08/16/2012 by: dugullett
Red Belt

  • 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
  • I'll give that converter a try, and I am calling the .bat file in the command line.

All Answers


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?




Answered 08/16/2012 by: DanGreenbrier
Orange Belt

  • Maybe add a pause in there after each one to see if it prompting you with an error.
  • Does the administrators desktop actually exist at this point?
    • 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
      • 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.
  • This content is currently hidden from public view.
    Reason: Removed by user request For more information, visit our FAQ's.
  • 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
  • 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!
  • all users does exist at that time "c:\users\public\desktop"

Is this the only post install task?

Answered 08/16/2012 by: SMal.tmcc
Red Belt

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