{"id":655,"date":"2017-11-04T20:15:16","date_gmt":"2017-11-04T19:15:16","guid":{"rendered":"http:\/\/wp.rimfalt.se\/?p=655"},"modified":"2017-11-04T20:15:16","modified_gmt":"2017-11-04T19:15:16","slug":"add-to-ps1-file-context-menu-in-windows-10-for-editing-in-ise-elevated","status":"publish","type":"post","link":"https:\/\/wp.rimfalt.se\/?p=655","title":{"rendered":"Add to PS1 File Context Menu in Windows 10 for editing in ISE elevated"},"content":{"rendered":"<p>I wanted to get into ISE elevated directly from the shell by just rightclicking the *.ps1 file and then choose to edit &#8230;<\/p>\n<p>I realy couldnt find anywone that had made this available public 100% working&#8230; so here it is&#8230; my verison&#8230;<\/p>\n<p>Create a regfile of the below and run it or edit the registry directly&#8230;<\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">Windows Registry Editor Version 5.00\n\n    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Microsoft.PowerShellScript.1\\Shell\\Edit(Elevated)]\n    @=\"Redigera (eleverat)\"\n    \"HasLUAShield\"=\"\"\n\n    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Microsoft.PowerShellScript.1\\Shell\\Edit(Elevated)\\Command]\n    @=\"c:\\\\windows\\\\system32\\\\windowsPowerShell\\\\v1.0\\\\powershell.exe -command \\\"&amp; {start-process -Filepath \\\"c:\\\\windows\\\\system32\\\\windowsPowerShell\\\\v1.0\\\\\\\\powershell_ise.exe -Verb RunAS %1\\\"}\"<\/code><\/pre>\n<p>Result<\/p>\n<p><a href=\"https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2017\/11\/ISE_elevated_reg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-660 alignleft\" src=\"https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2017\/11\/ISE_elevated_reg.png\" alt=\"\" width=\"252\" height=\"487\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to get into ISE elevated directly from the shell by just rightclicking the *.ps1 file and then choose [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7,14],"tags":[47,59,75,123,127],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-powershell","category-windows","tag-elevated","tag-ise","tag-powershell","tag-win10","tag-windows10"],"_links":{"self":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=655"}],"version-history":[{"count":0,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}