Error with "Test TargetResource" does not run. Error message: "The response content cannot be parsed because the Internet Explorer module is not available, or the configuration is displayed the first time you start Internet explorer. Apply -usebasicparsing and try again."
Yeah I had that yesterday too. I created a local gpo using this. https://wahlnetwork.com/2015/11/17/solving-the-first-launch-configuration-error-with-powershells-invoke-webrequest-cmdlet/
Hi @ahohenschuh , a workaround is to disable IE First Run for System Account. For Scripts on non-Domain Machines you can set this Registry Key:
$IEFirstRunRegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main"
$IEFirstRunValueName = "DisableFirstRunCustomize"
$IEFirstRunValue = 1
new-item -Path $IEFirstRunRegPath -force | Out-Null
New-ItemProperty -Path $IEFirstRunRegPath -Name $IEFirstRunValueName -Value $IEFirstRunValue -PropertyType DWORD -Force | Out-Null
Thanks folks. closing the issue since we have a fix.
Is there no other way around this? Error will prevent adoption since many systems running this will not have internet explorer ran previously.
Had to reboot the VM afterwards to get this fix to run. I added it into my prep.ps1 since it's required.
I don't have a VM, i'm running my scripts in an Azure Run Book.
I created an issue for MSCloudLoginAssistant this morning: microsoft/MSCloudLoginAssistant#102
I haven't tested this yet, but I suspect fixing that issue will fix this issue as well.