{"id":1130,"date":"2009-02-10T17:30:41","date_gmt":"2009-02-11T01:30:41","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=1130"},"modified":"2009-02-11T10:47:26","modified_gmt":"2009-02-11T18:47:26","slug":"primalscript-2009-includes-powershell-profile-manager","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2009\/02\/10\/primalscript-2009-includes-powershell-profile-manager\/","title":{"rendered":"PrimalScript 2009 includes PowerShell Profile Manager"},"content":{"rendered":"<p>When you develop PowerShell scripts that are required to run on\u00a0machines\u00a0other than your own, you should test if they can survive without your specific environment.<\/p>\n<p>Your PowerShell profiles are such a dependency. Since you cannot always be sure what environment you will find on another machine, testing your scripts without your usual profile seems like a good idea.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/02\/image.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; margin: 0px 10px 0px 0px; border-left: 0px; border-bottom: 0px\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/02\/image-thumb.png\" border=\"0\" alt=\"image\" width=\"69\" height=\"244\" align=\"left\" \/><\/a>Since PowerShell has multiple possible profiles, this can become just a\u00a0tad cumbersome. PrimalScript 2009&#8217;s PowerShell Profile Manager can make this a bit easier.<\/p>\n<p>\u00a0<\/p>\n<p>You launch it from the SAPIEN Tools section in the\u00a0PrimalScript&#8217;s\u00a0Tools Browser.\u00a0<\/p>\n<p>Under Windows Vista, Windows 2008 Server and Windows 7, you will be presented with an elevation prompt. Since some of PowerShell&#8217;s profiles reside in system folders this is a required step.<\/p>\n<p>\u00a0<\/p>\n<p>The Profile Manager itself is a simple application, enabling you to enable or disable a specific profile, and, with the click of a button, load it into PrimalScript for editing.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/02\/image2.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2009\/02\/image-thumb2.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"172\" \/><\/a><\/p>\n<p>Checking and un-checking the various profiles will simply rename the corresponding files and thereby prevent or enable loading.<\/p>\n<p>It is important to note that any running shells, custom hosts etc. are not affected by these changes. You must restart them if you want your profile changes to apply.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you develop PowerShell scripts that are required to run on\u00a0machines\u00a0other than your own, you should test if they can survive without your specific environment. Your PowerShell profiles are such a dependency. Since you cannot always be sure what environment you will find on another machine, testing your scripts without your usual profile seems like [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,410,21,25],"tags":[28,37,107],"class_list":["post-1130","post","type-post","status-publish","format-standard","hentry","category-general","category-primalscript-software-news","category-software-news","category-windows-powershell","tag-powershell","tag-primalscript","tag-profiles"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=1130"}],"version-history":[{"count":3,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1130\/revisions"}],"predecessor-version":[{"id":1144,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/1130\/revisions\/1144"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=1130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=1130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}