AutoLogon fails after OOBE


  • Testers

    I had my image made and have done this for years. Somehow my dummy self messed up and rebooted the image with the unattend.xml in the sysprep folder.

    Now the Administrator password is not blank and when I run OOBE it says “user name and password incorrect”

    Does anyone have any idea on how to get this back to blank.

    I have done the following:

    Reset and pressed OK with nothing there.
    Hit enter to just allow for a blank password
    Ran the NT Password Recovery disk and chose to blank the password form it.

    No dice on any of that. I have to be missing something, like a reg key or something. I have scoured the internet for days. I might need fresh eyes if anyone has any ideas.


  • Testers

    I will take a look at this once I get it settled in the environment. The way I got around it for now was to create the SetupComplete.CMD file and put what I needed in there so it would start the FOG service once imaging was complete and it is working good now.

    I’m not a coder so it all looks like Greek to me but I know I can figure out what I am looking at. And thank you for the suggestion.


  • Developer

    then create a new file in the same location as fog.postdownload called fog.ad and you can edit the sysprep file however you would like - this changes the unattend.xml AFTER the machine is imaged and pulls the info for that host from fog, making the unattend.xml unique and set with the info for that host.

    using the below you could use sed command to edit the local admin password set in your unattend.xml to match what you want it to be, just follow how below works.

    #!/bin/sh
    
    hostadpwd="password-to-join-domain";
    panther="/ntfs/Windows/Panther/unattend.xml";
    if [ -f "$panther" ]; then
    	unattend="/ntfs/Windows/Panther/unattend.xml";
    else
    	if [ $osid == "9" ]; then
    		unattend="/ntfs/Windows/System32/Sysprep/unattend.xml";
    	else
    		unattend="/ntfs/Windows/System32/sysprep/unattend.xml";
    	fi
    fi
    
    if [ -f "$unattend" ]; then
    	dots "Writing Computer Name";
    	sed -i "/ComputerName/s/*/$hostname/g" $unattend
    	echo "Done";
    	dots "ComputerName Set To";
    	echo $hostname
    	dots "Set PC To Join The Domain";
    	if [ "$addomain" != "" ]; then
    		sed -i "/<JoinWorkgroup>/d" $unattend
    		sed -i -e "s|<Password></Password>|<Password>${hostadpwd}</Password>|g" \
    			-e "s|<Username></Username>|<Username>${addomain}\\\\${aduser}</Username>|g" \
    			-e "s|<MachineObjectOU></MachineObjectOU>|<MachineObjectOU>${adou}</MachineObjectOU>|g" \
    			-e "s|<JoinDomain></JoinDomain>|<JoinDomain>${addomain}</JoinDomain>|g" $unattend
    		echo "Done";
    	else
    		echo "Skipped";
    	fi
    

    fi


  • Developer

    add this code into /images/postscripts/fog.postdownload

    clearScreen;
    mkdir /ntfs &>/dev/null
    ntfs-3g -o force,rw $part /ntfs
    dots "Mounting Device";
    if [ "$?" = "0" ]; then
    	echo "Done";
    	. ${postdownpath}fog.ad
    	umount /ntfs;
    else
    	echo "Failed To Mount Device";
    	sleep 30;
    fi

  • Testers

    Forgot to add this is for Windows 7


Log in to reply
 

771
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.