{"id":3233,"date":"2023-06-10T13:52:16","date_gmt":"2023-06-10T13:52:16","guid":{"rendered":"https:\/\/leinss.com\/blog\/?p=3233"},"modified":"2023-07-05T19:00:17","modified_gmt":"2023-07-05T19:00:17","slug":"case-of-operator-failure","status":"publish","type":"post","link":"https:\/\/leinss.com\/blog\/?p=3233","title":{"rendered":"Case of Operator Failure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We are retiring an old file server at work.  One of the file shares held a bunch of text files of people&#8217;s log offs: username, date, time.   The problem is I had no idea where this script was running from.  RSOP.MSC didn&#8217;t show any scripts that would do this in the Logoff section of any applied GPOs and searches of SYSVOL with Agent Ransack came up with nothing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I decided to use an old Procmon trick from Sami Laiho: <a href=\"https:\/\/4sysops.com\/archives\/using-process-monitor-procmon-remotely\/\">https:\/\/4sysops.com\/archives\/using-process-monitor-procmon-remotely\/<\/a>.  Basically, this allows us to run Procmon remotely and in another user session, so we can trace events during user logons and logoffs.  I did the remote Procmon trick, logged on and off and then took a look at the PML file in Procmon. I searched for the name of the share and behold: I found powershell.exe running a file called logout_oldadmin.ps1.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Doing an e-mail search with the script name, I found some old gpresult HTML reports in old e-mail messages which led me to the GPO name in question that was firing this script off.    The question is why didn&#8217;t I see in this RSOP.MSC and why didn&#8217;t Agent Ransack find the script?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">RSOP.MSC hasn&#8217;t been supported since 2006 and Microsoft even warns it may not show all of the group policies.  Instead, you are supposed to use gpresult \/h report.html.  Mea culpa.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Agent Ransack issue&#8230;I had a date filter set and didn&#8217;t realize it.   Oof!  Today&#8217;s lesson is if you don&#8217;t find what you are looking for, use a different tool.  When I dropped to a CMD session, mapped a drive to SYSVOL and used &#8220;dir&#8221;, I could see the files.  <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Soli Deo Gloria<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>We are retiring an old file server at work. One of the file shares held a bunch of text files of people&#8217;s log offs: username, date, time. The problem is I had no idea where this script was running from. RSOP.MSC didn&#8217;t show any scripts that would do this in the Logoff section of any &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/leinss.com\/blog\/?p=3233\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Case of Operator Failure&#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":[4,7],"tags":[],"class_list":["post-3233","post","type-post","status-publish","format-standard","hentry","category-operating-system","category-tech-tips"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7wiG8-Q9","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3233","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=3233"}],"version-history":[{"count":13,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3233\/revisions"}],"predecessor-version":[{"id":3252,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3233\/revisions\/3252"}],"wp:attachment":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}