How to create an unattend file to install Windows 10 and UEFI

The following TechNET artical tells you how to create the disk configuration for an EUFI based computer via an unattend file.

Create an Answer File for UEFI-based Computers

https://technet.microsoft.com/en-gb/library/cc765950(v=ws.10).aspx

This artical tells you how to create an unattend file that will put you into “Audit Mode” after installing Windows. You can substitute the disk configuration for the EUFI if that is what you need. You’ll also need to change the InstallTo location.

Walkthrough: Build a Simple Answer File

https://technet.microsoft.com/en-us/library/cc749317(v=ws.10).aspx

The Recycle Bin on D:\ is corrupted. Do you want to empty the Recycle Bin for this drive?

https://social.technet.microsoft.com/Forums/windows/en-US/f9c89952-0c61-4170-964a-6d7e90ee7347/recycle-bin-corrupted?forum=winservergen

“i faced the similar problem earlier and i ran the below command

rd /s /q C:\$Recycle.bin

This clears out the $Recycle.bin folder from the C:\ partition. You may have to do this for each hard disk partition in your system”

The results were instant, the missing 107GB showed up on the D drive after removing the directories on the C and D drives.

Adding Virtual Machines to Hyper-V with PowerShell

After you’ve exported a VM from Hyper-V you may want to import a unique copy of it or several unique copies of it back into Hyper-V.

$i=1
Do
{
###################### Import Virtual Machine from Template ######################
$NewVMNumber=$i
$VMToImport='C:\Users\administrator.ISLEWORTHSYON\Desktop\isos\2016srv\Server 2016 Preview\Virtual Machines\E58E5FDD-03DF-4870-8725-5F63AD7D943D.xml'
$VMPath='D:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\S16'+$newVMNumber
$VMHDD='D:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\S16'+$newVMNumber
$NewVMName='Server 2016 Preview - S16'+$NewVMNumber

Import-VM -Path $VMToImport –Copy -GenerateNewId -VirtualMachinePath $VMPath -SnapshotFilePath $VMPath -SmartPagingFilePath $VMPath -VhdDestinationPath $VMHDD

Rename-VM 'Server 2016 Preview' -NewName $NewVMName

###################################### End #######################################
$i++
}
While ($i -le 2)

 

Missing Google Drive space

I found Google Drive to be reporting that I was using about 100GB more storage than I was actually using, I checked this by seeing how large the Drive folder on my machine is. Having recently done a Google Takeaway backup of my Google data I figured it was something to do with that. Having moved my Google Takeaway off of Drive onto a USB drive locked in a safe I had forgotten that Google kindly moves a copy of the moved (deleted from Drive so far as Google is concerned) into the Google Drive Bin. Having been to empty the Bin Google is now reporting the correct amount of space as being used.