{"id":3442,"date":"2024-09-21T15:23:48","date_gmt":"2024-09-21T15:23:48","guid":{"rendered":"https:\/\/leinss.com\/blog\/?p=3442"},"modified":"2024-09-21T15:23:49","modified_gmt":"2024-09-21T15:23:49","slug":"when-runas-system-isnt-enough","status":"publish","type":"post","link":"https:\/\/leinss.com\/blog\/?p=3442","title":{"rendered":"When RunAs SYSTEM Isn&#8217;t Enough"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;ve written several times in the past about running under the SYSTEM account using the well known trick <strong>psexec -i -s cmd<\/strong> which runs cmd under SYSTEM, but what if you want to run as TrustedInstaller?  More accurately, you can run as SYSTEM with the TrustedInstaller token.  I happened to stumble across this trick when trying to delete the files in C:\\Windows\\WinSxS\\Temp\\PendingDeletes\\ and it just wasn&#8217;t happening using the SYSTEM account alone.  The program I used is <a href=\"https:\/\/github.com\/Raymai97\/SuperCMD\" data-type=\"link\" data-id=\"https:\/\/github.com\/Raymai97\/SuperCMD\">SuperCMD<\/a>.    Just run <strong>SuperCMD.exe \/TI \/Run:cmd.exe<\/strong> using RunAs Administrator on cmd.exe and viola, you are SYSTEM running with the TrustedInstaller token!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another program that can be used is <a href=\"https:\/\/www.majorgeeks.com\/files\/details\/nsudo.html\" data-type=\"link\" data-id=\"https:\/\/www.majorgeeks.com\/files\/details\/nsudo.html\">NSUDO<\/a> which is based on SuperCMD.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Soli Deo Gloria<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written several times in the past about running under the SYSTEM account using the well known trick psexec -i -s cmd which runs cmd under SYSTEM, but what if you want to run as TrustedInstaller? More accurately, you can run as SYSTEM with the TrustedInstaller token. I happened to stumble across this trick when &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/leinss.com\/blog\/?p=3442\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;When RunAs SYSTEM Isn&#8217;t Enough&#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_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":[7],"tags":[],"class_list":["post-3442","post","type-post","status-publish","format-standard","hentry","category-tech-tips"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7wiG8-Tw","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3442","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=3442"}],"version-history":[{"count":3,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3442\/revisions"}],"predecessor-version":[{"id":3446,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3442\/revisions\/3446"}],"wp:attachment":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}