Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

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."

Open ahohenschuh opened this issue 6 years ago • 7 comments

ahohenschuh avatar Jun 10 '20 10:06 ahohenschuh

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/

mdcaddic avatar Jun 11 '20 04:06 mdcaddic

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

sfr23 avatar Jun 16 '20 10:06 sfr23

Thanks folks. closing the issue since we have a fix.

NikCharlebois avatar Jun 18 '20 20:06 NikCharlebois

Is there no other way around this? Error will prevent adoption since many systems running this will not have internet explorer ran previously.

bitdeft avatar Aug 17 '20 19:08 bitdeft

Had to reboot the VM afterwards to get this fix to run. I added it into my prep.ps1 since it's required.

KenBenjamin avatar Feb 22 '21 20:02 KenBenjamin

I don't have a VM, i'm running my scripts in an Azure Run Book.

hmank avatar Feb 24 '21 16:02 hmank

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.

ykuijs avatar Feb 24 '21 16:02 ykuijs