For some reason I have been getting the following error when trying to start an instance during a remote desktop session (most probably related to the graphics card).
ArcGIS: LoadLibrary failed with error 87:The parameter is incorrect.
![](https://attachments.office.net/owa/zdefne%40usgs.gov/service.svc/s/GetAttachmentThumbnail?id=AAMkAGE0YWNmOGE4LTY2MzctNDU4Mi04MjFkLTMyZDRhYThmYzgwYwBGAAAAAAD3ui2sAJLoRaPSVALywaQEBwC8IJ3JTq0fSbMo3e1yXRuqAAAAAAEJAAC8IJ3JTq0fSbMo3e1yXRuqAAFzmX23AAABEgAQALdBz5TZXlZLiNg9xp5U4%2FM%3D&thumbnailType=2&owa=outlook.office365.com&scriptVer=2020031603.15&X-OWA-CANARY=2xVPcFudR06ojBtoN4cx_kD5xno9z9cYmG_zya4hD-ecrLbpH-W362RiI2_1X6fXr_aWXF2Kqw8.&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IjU2MzU4ODUyMzRCOTI1MkRERTAwNTc2NkQ5RDlGMjc2NTY1RjYzRTIiLCJ4NXQiOiJWaldJVWpTNUpTM2VBRmRtMmRueWRsWmZZLUkiLCJ0eXAiOiJKV1QifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlMzY1LmNvbSIsInZlciI6IkV4Y2hhbmdlLkNhbGxiYWNrLlYxIiwiYXBwY3R4c2VuZGVyIjoiT3dhRG93bmxvYWRAMDY5M2I1YmEtNGIxOC00ZDdiLTkzNDEtZjMyZjQwMGE1NDk0IiwiaXNzcmluZyI6IkdDQ01vZGVyYXRlIiwiYXBwY3R4Ijoie1wibXNleGNocHJvdFwiOlwib3dhXCIsXCJwcmltYXJ5c2lkXCI6XCJTLTEtNS0yMS0zMjEyMDM3MzYyLTU5MjEzNzQ5Ni0xMDM3MTUxOTYtMTQ5ODY2NFwiLFwicHVpZFwiOlwiMTE1Mzk3NzAyNTQ0MzkyNDEyMFwiLFwib2lkXCI6XCJhMzlmNGI0My1hODc3LTQ1YzUtYTdiOC00M2NjOTk0YWQxMWFcIixcInNjb3BlXCI6XCJPd2FEb3dubG9hZFwifSIsIm5iZiI6MTU4NDk3NjY5MywiZXhwIjoxNTg0OTc3MjkzLCJpc3MiOiIwMDAwMDAwMi0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDBAMDY5M2I1YmEtNGIxOC00ZDdiLTkzNDEtZjMyZjQwMGE1NDk0IiwiYXVkIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL2F0dGFjaG1lbnRzLm9mZmljZS5uZXRAMDY5M2I1YmEtNGIxOC00ZDdiLTkzNDEtZjMyZjQwMGE1NDk0In0.Op-4a0Keqv3kg1e8unJvn2UE3ceo_iqFLk86L7AEmsMzuYnFZUgBNZzsp1puzk-GfIsQBcau2FH4aRugwqHLsdj7ZGnSBvW7R9C2cAkw9G98UOVgUbn_Pz_p9_k7n-_NlA6T-FetvHHg_dVp9xb-2Yo1GfVluBYp5Ay48QefvYQaNeOgQo8ZjZ8hiRgmDrpy4Of1DROtkCmaS-OFXQtp46vVCNPn_RQvGvYq7OZlAt3_300c57Sk3japzeR8aaoPumaJ49_w57HR8hPqYDeN1tG0mHUWmQZGG62fPTVdruUjF7zLR0DTE5xYRqH4j8h3bb71zygCft_jTrRdMOXMNw&animation=true)
Here's how I solved the problem (Edit Group Policy tool from Control Panel):
-Right click on Windows start menu and select Run (or windows+R)
-type cmd
-type gpedit.exe
-go to: Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment
-set following parameters to Enabled
Use hardware graphics adapters for all Remote Desktop Services sessions
Prioritize H.264/AVC 444 graphics mode for Remote Desktop Connections
Configure H.264/AVC hardware encoding for Remote Desktop Connections