{"id":3640,"date":"2025-10-16T18:42:00","date_gmt":"2025-10-16T18:42:00","guid":{"rendered":"https:\/\/leinss.com\/blog\/?p=3640"},"modified":"2026-11-20T02:07:22","modified_gmt":"2026-11-20T02:07:22","slug":"if-at-first-you-dont-succeed-try-3-different-ais","status":"publish","type":"post","link":"https:\/\/leinss.com\/blog\/?p=3640","title":{"rendered":"If At First You Don&#8217;t Succeed: Try 3 Different AIs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I was going back and forth with ChatGPT on creating a script that would launch procmon.exe silently via the task scheduler so I could monitor excel.exe when it saved any file ending in .csv, .xls or .xlsx.  This went on for several hours, but I was not making any progress, even switching over to using Sysmon to see if I can have it do the logging I needed.  Pro tip: if you have Sysmon running on a system, Procmon will be unable to load its driver and therefore will not work.  You have to uninstall Sysmon first, then Procmon will work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Procmon would start, I could see it in the task manager, but it wasn&#8217;t creating a PML file and I couldn&#8217;t terminate procmon with procmon.exe \/terminate. I decided to go over to Gemini and chat back and forth with it and wasn&#8217;t making any progress there either. On a whim, I took the script that ChatGPT created and fed it into Grok.com. Grok starting churning away, checking the Internet for command line options and what did it find? ChatGPT hallucinated 2 of the command line options!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What was happening is that procmon was displaying an error, but since it was running under the SYSTEM account with \/QUIET, there is no GUI to present to the user. Procmon was running in an errant state, but I couldn&#8217;t tell that. As soon as I removed the two invalid command line options, everything was right as rain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The script ChatGPT created is too cool not to share, so here it is: <a href=\"https:\/\/github.com\/adamleinss\/PowerShellMisc\/blob\/master\/procmon_task_scheduler.ps1\">https:\/\/github.com\/adamleinss\/PowerShellMisc\/blob\/master\/procmon_task_scheduler.ps1<\/a>. Along with this script, I uploaded the PMC file you can import into Procmon. The important bit is to make sure &#8220;Drop filtered events&#8221; is checked under Filter so the PML file doesn&#8217;t increase in size unnecessarily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">-Soli Deo Gloria<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was going back and forth with ChatGPT on creating a script that would launch procmon.exe silently via the task scheduler so I could monitor excel.exe when it saved any file ending in .csv, .xls or .xlsx. This went on for several hours, but I was not making any progress, even switching over to using &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/leinss.com\/blog\/?p=3640\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;If At First You Don&#8217;t Succeed: Try 3 Different AIs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,7],"tags":[],"class_list":["post-3640","post","type-post","status-publish","format-standard","hentry","category-misc","category-tech-tips"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7wiG8-WI","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3640"}],"version-history":[{"count":13,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3640\/revisions"}],"predecessor-version":[{"id":3825,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3640\/revisions\/3825"}],"wp:attachment":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}