Windows AutoPilot - New Features

**With the Windows 10 Creators Update, Microsoft introduced Windows AutoPilot. Windows AutoPilot is a service which allows users to enroll their device with the Intune/Azure AD tenant of the organization during the Out-of-the-Box (OOBE) experience of Windows 10. By using Windows AutoPilot, organizations can dramatically decrease the time needed to configure a new device. During Microsoft Tech Summit 2018 in Amsterdam, Michael Niehaus announced some exciting new features which I will discuss in this blog post too.** ...

31-03-2018 · 4 min · Jean-Paul van Ravensberg

Lock screen image not showing - Windows 10 1703

Recently I was trying to apply a lock screen image with a GPO. I distributed the image to the C:/Windows/Web/Wallpaper directory and configured the Windows 10 GPO to that location. After running the Windows 10 Task Sequence successfully, the default lock screen image came up. I was using a large image from the client so that it still looks good on bigger screens. I’ve found out that after resizing the image back to 1080P, the image was applied successfully after locking the machine. ...

10-09-2017 · 1 min · Jean-Paul van Ravensberg

Enable Hyper-V during Task Sequence in SCCM 2012 R2

Because I wanted to configure Device Guard with Windows 10, I need the Hyper-V Hypervisor to be enabled on Windows 10. I tried to do this with DISM and an answer file, but it’s not possible to enable Hyper-V during the Task Sequence Deployment because Hyper-V requires a couple of reboots. Solution Create a new “Set Task Sequence Variable” task in your Task Sequence. This will run the PowerShell command after the Task Sequence ends. I’ve set this task before enabling the Driver Package, but it should be possible to place this task anywhere you like. ...

25-01-2016 · 1 min · Jean-Paul van Ravensberg

Script for package failed with exit code 4 in SCCM 2012 R2

Problem: In SCCM 2012 R2 SP1 CU2, I’ve created a package that deploys some files such as wallpapers with a .BAT file. When I check the execmgr.log, I see the following error: Script for Package:PR######, Program: Run Script failed with exit code 4. Solution: Under the program in SCCM, change “Run” from “Hidden” to “Normal”.

10-12-2015 · 1 min · Jean-Paul van Ravensberg

Windows 10 - SCCM 2012 R2 SP1 fails with error 0x80070032

I was deploying Windows 10 with SCCM 2012 R2 SP1 and the task sequence failed after “Installing device drivers” with error code 0x80070032 (or 80070032). The “Auto Apply Drivers” task works fine, but doesn’t install a lot of drivers. The smsts.log file: Dism failed with return code 50 Failed to add driver to driver store. Code 0x80070032 Failed to provision driver. Code 0x80070032 Exiting with return code 0x80070032 Solution: Make sure you’re using the latest MDT version, compatible with Windows 10. Make sure you’re using at least ADK 10. Check if your boot image has OS Version 10 or higher. If not, create a new boot image with MDT or ADK.

23-07-2015 · 1 min · Jean-Paul van Ravensberg

Azure - Deploy and automatically domain join a VM with Azure Automation Runbooks

I was looking for a way to deploy and automatically domain join a VM in Azure. The solution was quite simple: Azure Automation. I found the blog post of DexterPOSH very useful, but the script doesn’t work for me. Follow the steps on his blog and use this script below. I’ll update this post if I find some improvements. Don’t forget to update the domain in the Add-Computer part. To-Do list: - Custom static IP as variable. ...

18-02-2015 · 3 min · Jean-Paul van Ravensberg

Azure - Automatically deploy a VM in Azure (Runbook)

I was looking for a way to automatically deploy a VM in Azure. The solution was quite simple: Azure Automation. I found the blog post of DexterPOSH very useful, but the script doesn’t work for me. Follow the steps on his blog and use this script below. I’ll update this post if I find some improvements. To-Do list: Custom static IP as variable. Custom domain as variable. workflow Deploy-NonJoined-VM { param( [parameter(Mandatory)] [String] $VMName, [parameter(Mandatory)] [String] $ServiceName = "contoso<Insert name>", [parameter(Mandatory)] [String] $InstanceSize = "Small", [parameter(Mandatory)] [String] $VMImageName = "Specify custom or default image name", [parameter(Mandatory)] [String] $AzureSubscriptionName = "Subscription-1", [parameter(Mandatory)] [String] $StorageAccountName = "contoso", [parameter(Mandatory)] [String] $VMSubnetName = "subnet-1", [parameter(Mandatory)] [String] $VMVnetName = "CORP.contoso.com", [parameter(Mandatory)] [String] $VMAffinityGroup = "West-Europe" ) $verbosepreference = 'continue' #Change this to your needs $DomainJoinAccount = "Domain Join Account" $LocalAccount = "LocalAdmin" $AutomationAccount = "Azure Automation Account" #Get the Credentials to authenticate agains Azure Write-Verbose -Message "Getting the Credentials" $Cred = Get-AutomationPSCredential -Name $AutomationAccount $LocalCred = Get-AutomationPSCredential -Name $LocalAccount $DomainCred = Get-AutomationPSCredential -Name $DomainJoinAccount #Add the Account to the Workflow Write-Verbose -Message "Adding the Azure Automation Account to Authenticate" Add-AzureAccount -Credential $Cred #select the Subscription Write-Verbose -Message "Selecting the $AzureSubscriptionName Subscription" Select-AzureSubscription -SubscriptionName $AzureSubscriptionName #Set the Storage for the Subscrption Write-Verbose -Message "Setting the Storage Account for the Subscription" Set-AzureSubscription -SubscriptionName $AzureSubscriptionName -CurrentStorageAccountName $StorageAccountName #Select the most recent Server 2012 R2 Image Write-Verbose -Message "Getting the Image details" $imagename = Get-AzureVMImage | where-object -filterscript { $_.ImageName -eq $VMImageName } | Sort-Object -Descending -Property PublishedDate | Select-Object -First 1 | select -ExpandProperty ImageName #use the above Image selected to build a new VM and wait for it to Boot $Username = $LocalCred.UserName $Password = $LocalCred.GetNetworkCredential().Password New-AzureQuickVM -Windows -ServiceName $ServiceName -Name $VMName -ImageName $imagename -Password $Password -AdminUsername $Username -SubnetNames $VMSubnetName -VNetName $VMVnetName -InstanceSize $InstanceSize -AffinityGroup $VMAffinityGroup -WaitForBoot Write-Verbose -Message "The VM is created and booted up now.. Deployment done." } #Workflow end

18-02-2015 · 2 min · Jean-Paul van Ravensberg