{"id":3220,"date":"2016-09-15T14:38:46","date_gmt":"2016-09-15T18:38:46","guid":{"rendered":"http:\/\/batchpatch.com\/?p=3220"},"modified":"2019-04-30T11:33:38","modified_gmt":"2019-04-30T15:33:38","slug":"remote-execution-context","status":"publish","type":"post","link":"https:\/\/batchpatch.com\/remote-execution-context","title":{"rendered":"Remote Execution Context"},"content":{"rendered":"<p>In the most recent release of BatchPatch (20160914) we added a new setting for <em>&#8216;Remote Execution Context&#8217;<\/em> under <em><strong>&#8216;Tools > Settings > Remote Execution.&#8217;<\/strong><\/em><\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/09\/2016-09-15-14_06_21-Settings.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/09\/2016-09-15-14_06_21-Settings.png\" alt=\"2016-09-15-14_06_21-settings\" width=\"486\" height=\"617\" class=\"aligncenter size-full wp-image-3221\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/09\/2016-09-15-14_06_21-Settings.png 486w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/09\/2016-09-15-14_06_21-Settings-236x300.png 236w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/a><\/p>\n<p>This setting determines the execution context used for remote commands and deployments.<\/p>\n<p><strong>SYSTEM:<\/strong> Run the remote process in the SYSTEM account<br \/>\n<strong>Elevated token:<\/strong> Run the remote process with the account&#8217;s elevated token, if available<br \/>\n<strong>Normal:<\/strong> Run the remote process normally<br \/>\n<strong>Limited:<\/strong> Run the remote process as a limited user (strips the Administrators group and allows only privileges assigned to the Users group)<\/p>\n<p>In many cases there will be no discernible difference in the behavior of remote commands run under different execution contexts, particularly when comparing SYSTEM with Elevated token.  However, in some cases commands might only run successfully under a particular context.  We find that using the SYSTEM account works best for most users in most situations, with Elevated token also generally working fine in most cases.  There may be some edge cases where a remote command needs to be executed as a regular (non-admin) user, in which case the &#8216;Normal&#8217; option may be used.  We are not aware of any situations where the &#8216;Limited&#8217; option needs to be used, and frankly it will cause most remote commands and deployment to fail outright, so we don&#8217;t recommend using it.  However, it&#8217;s there just in case, and now everyone has the ability to modify the execution context according to their own needs, depending on the environment that they are working in.  <\/p>\n<p>Our belief is that exposing this setting will decrease potential incompatibility issues.  That said, if you have a deployment or a remote command that is failing for no apparent reason, you should try modifying the execution context to see if that&#8217;s the source of the problem. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the most recent release of BatchPatch (20160914) we added a new setting for &#8216;Remote Execution Context&#8217; under &#8216;Tools > Settings > Remote Execution.&#8217; This setting determines the execution context used for remote commands and deployments. SYSTEM: Run the remote process in the SYSTEM account Elevated token: Run the remote process with the account&#8217;s elevated [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,17,3],"tags":[218,217,216,219],"class_list":["post-3220","post","type-post","status-publish","format-standard","hentry","category-blog","category-general","category-tutorials","tag-deployment-execution-context","tag-remote-commands","tag-remote-execution-context","tag-remote-processes"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/3220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/comments?post=3220"}],"version-history":[{"count":5,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/3220\/revisions"}],"predecessor-version":[{"id":4635,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/3220\/revisions\/4635"}],"wp:attachment":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/media?parent=3220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/categories?post=3220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/tags?post=3220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}