Forum Discussion
Intune compliance issues Windows 11 22H2
This error is what i get.
But how did you restore it, in your previous message you said: after manually restoring that service it worked Rudy_Ooms_MVP
I exported that task from another device with powershell and imported it back on that device... but getting that message.. that scheduled task should use the verifydevicehealth function wich is pulled from the tpmcoreprovisioning.dll that the tpmtasks.dll (which that task uses) imports.
Feel free to reach out to me on twitter.... as I am pretty curious about what a procmon trace should show you when you run that task... i guess it should show you something.. (would love to look at it)
You could also call upon that function yourself... this line below should trigger the same thing as that task should trigger...
rundll32 tpmcoreprovisioning.dll,TpmVerifyDeviceHealth
- buckbaggenJan 30, 2023Brass Contributor
I don't have twitter 😞 I exported the task from another device where the task runs successfull, but i can't import it, see screenshot. What is a procmon trace?Rudy_Ooms_MVP
- Jan 30, 2023Yep... you need to import it with PowerShell.. had the same error when importing it in the GUI 🙂
Register-ScheduledTask -Xml 'path to .xml' -TaskName "taskname" restore the task (not in that tpm folder but in the root of the scheduled task)
You could download procmon.exe and run it.... when trying to execute that task or running that rundll32 command would record whats happening...- buckbaggenJan 30, 2023Brass Contributor
My Powershell skills are very low... Can you see what i'm doing wrong?Rudy_Ooms_MVP