added autounattend and fixed script