Month: December 2018

Automatically Create Win10 Autopilot VMs – Part 2

How to Automatically Provision Win10 Autopilot Devices – Part 2 Scenario You have an autopilot demonstration environment running of Hyper-V. Considering the environment dynamics, you need to automate the VM provisioning. Manual approach is no longer feasible – “when you do something more than 2 times the same way, it is time to automate …” Solution Prepare a golden image you can use to clone new VM. From the Hype-V host start VM provisioning, upload Autopilot data to Intune and invoke remote wipe of the new clone to prepare it for Autopilot OOBE experience In this post you will prepare the Hyper-V host to control the Autopilot VM creation based on the golden image we created earlier Steps: Configure AutoPilot profile assignment using a dynamic device group Create the PS scriptRun the automation …. wait ….. yeeeey! 😊 Let’s configure the deployment profile auto-assignment. Open the Azure portal and login to your tenant Go to Intune > Groups Click new group Set group type to Security Group Name to AutoPilotDevicesMembership type is Dynamic DeviceOpen Dynamic Device membership blade click advanced rule Enter the following rule to add all new devices to the group : (device.devicePhysicalIDs -any _ -contains "[ZTDId]") 1 (device.devicePhysicalIDs -any _ -contains "[ZTDId]")  Click Add Query Create Now, we have a group that will contain all devices we upload as autopilot devices. It is time to create...

Read More

AUTOMATICALLY CREATE WIN10 AUTOPILOT VMS – PART 1

How to Automatically Provision Win10 AutoPilot Devices – Part 1 Scenario You have an autopilot demonstration environment running of Hyper-V. Considering the environment dynamics, you need to automate the VM provisioning. Manual approach is no longer feasible – “when you do something more that 2 times the same way, it is time to automate …” Solution Prepare a golden image you can use to clone new VM. From the Hype-V host start VM provisioning, upload Autopilot data to Intune and invoke remote wipe of the new clone to prepare it for Autopilot OOBE experience Prepare golden image In this post you will do the following Install a new win 10 Virtual machine Prepare the image Create unattend.xml file and create golden image disk Install a new win 10 Virtual machine I will not spend time on this topic. Simply install a win10 image (Pro or Enterprise), preferably last version. In this demo I use Win 10 Enterprise 1809.  Prepare the image Our image will need to have the following capabilities. Allows remote management with PowerShell – winRMHave the Get-WindowsAutopilotInfo script installed. This is required to get the HWID information for Intune Autopilot  Has psexec.exe for local executing scripts as system. MDM wipe can be executed only as system Has scripts for initiating MDM wipe (reset pc) Steps: Open Settings->Network & Internet -> Change connection properties Make sure Network Profile...

Read More