{"id":9229,"date":"2015-05-14T08:00:30","date_gmt":"2015-05-14T15:00:30","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=9229"},"modified":"2015-05-13T15:48:49","modified_gmt":"2015-05-13T22:48:49","slug":"powershell-studio-2015-editing-script-parameters","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2015\/05\/14\/powershell-studio-2015-editing-script-parameters\/","title":{"rendered":"PowerShell Studio 2015 &#8211; Editing Script Parameters"},"content":{"rendered":"<p>If you have used PowerShell Studio\u2019s <em>Function Builder <\/em>chances are probably you wished it could edit your script parameters. Now it can. With the v4.2.85 service release of PowerShell Studio 2015 we introduced the new <em>Parameter Builder<\/em>.<\/p>\n<p><strong>Parameter Builder:<\/strong><\/p>\n<p>Those familiar with the <em>Function Builder<\/em> will recognize the similarities between the two tools, with the exception of the <em>Name<\/em> portion of the builder. Otherwise the <em>Parameter Builder<\/em> and the <em>Function Builder<\/em> share the same functionality. You can use the <em>Parameter Builder<\/em> to insert a new parameter block or edit existing script parameters.<\/p>\n<p>You can access the <em>Parameter Builder<\/em> using the Ribbon:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"Ribbon - Edit Parameters\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/image_thumb.png\" alt=\"Ribbon - Edit Parameters\" width=\"244\" height=\"137\" border=\"0\" \/><\/a><\/p>\n<p>Or the editor\u2019s context menu:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"Context menu\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/image_thumb1.png\" alt=\"Context menu\" width=\"244\" height=\"198\" border=\"0\" \/><\/a><\/p>\n<p>Or press [Ctrl + Shift + P] on the keyboard.<\/p>\n<p>Just like the <em>Function Builder<\/em>, you can specify the parameters, parameter sets, validation, and help comments:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/SNAGHTML5cc66b.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"Parameter Builder\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/SNAGHTML5cc66b_thumb.png\" alt=\"Parameter Builder\" width=\"244\" height=\"146\" border=\"0\" \/><\/a><\/p>\n<p>When you are done editing the parameters, it will produce a parameter block for your script:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"Parameter block\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/05\/image_thumb2.png\" alt=\"Parameter block\" width=\"244\" height=\"137\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Please refer to the following blog articles for more details on how to use the <em>Function Builder<\/em> \/ <em>Parameter Builder<\/em>:<\/p>\n<p><a title=\"https:\/\/www.sapien.com\/blog\/2014\/09\/30\/powershell-studio-2014-editing-functions\/\" href=\"https:\/\/www.sapien.com\/blog\/2014\/09\/30\/powershell-studio-2014-editing-functions\/\">https:\/\/www.sapien.com\/blog\/2014\/09\/30\/powershell-studio-2014-editing-functions\/<\/a><\/p>\n<p><a title=\"https:\/\/www.sapien.com\/blog\/2014\/10\/02\/adding-parameter-sets-to-a-function\/\" href=\"https:\/\/www.sapien.com\/blog\/2014\/10\/02\/adding-parameter-sets-to-a-function\/\">https:\/\/www.sapien.com\/blog\/2014\/10\/02\/adding-parameter-sets-to-a-function\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have used PowerShell Studio\u2019s Function Builder chances are probably you wished it could edit your script parameters. Now it can. With the v4.2.85 service release of PowerShell Studio 2015 we introduced the new Parameter Builder. Parameter Builder: Those familiar with the Function Builder will recognize the similarities between the two tools, with the [&hellip;]<\/p>\n","protected":false},"author":10,"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":[703,632,25],"tags":[909,972,28,951],"class_list":["post-9229","post","type-post","status-publish","format-standard","hentry","category-powershell-studio","category-whats-new-software-news","category-windows-powershell","tag-function-builder","tag-parameter-builder","tag-powershell","tag-powershell-studio-2015"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9229","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=9229"}],"version-history":[{"count":4,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9229\/revisions"}],"predecessor-version":[{"id":9237,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9229\/revisions\/9237"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=9229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=9229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=9229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}