{"id":15227,"date":"2018-06-25T06:00:01","date_gmt":"2018-06-25T13:00:01","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=15227"},"modified":"2018-06-22T12:04:14","modified_gmt":"2018-06-22T19:04:14","slug":"new-video-creating-powershell-windows-service-with-primalscript","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2018\/06\/25\/new-video-creating-powershell-windows-service-with-primalscript\/","title":{"rendered":"New Video \u2013 Creating PowerShell Windows Service with PrimalScript"},"content":{"rendered":"<p>The latest in our video series demonstrates how to to create a Windows Service to kill a Solitaire process using SAPIEN&#8217;s PrimalScript 2018.<\/p>\n<p>In this short video we show you how to build and install a PowerShell Windows Service, including:<\/p>\n<ul>\n<li>Create a Windows Service from a PowerShell Service Template<\/li>\n<li>Add the code from a custom Snippet library<\/li>\n<li>Build the script Packager<\/li>\n<li>Build the MSI Installer<\/li>\n<li>Install \/ Uninstall the Windows Service<\/li>\n<\/ul>\n<p>Follow the steps in the video and be creative!<\/p>\n<p>View the video here: <a href=\"https:\/\/youtu.be\/mTuFCa8B_Zo\" target=\"_blank\" rel=\"noopener\">Creating PowerShell Windows Service with PrimalScript 2018<\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15228\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05-300x200.jpg\" alt=\"\" width=\"603\" height=\"402\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05-300x200.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05-768x513.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05-1024x684.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05-848x566.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/06\/WinServImage_01_2018-06-22_12-40-05.jpg 1417w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/a><\/p>\n<p><strong>*Note:<\/strong> In <em>Packager Settings<\/em>\u00a0&gt; <em>Output Settings<\/em>, make sure the default value for &#8220;Manifest Creation&#8221; is changed to &#8220;Embed a default manifest&#8221;, or the service will fail to run.<\/p>\n<h3>Related Articles<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2018\/03\/05\/installing-windows-services-created-with-powershell\/\">Installing Windows Services Created with PowerShell<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2018\/02\/27\/new-powershell-service-template-for-primalscript-2018\/\">New PowerShell Service Template for PrimalScript 2018<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2017\/07\/12\/write-a-windows-service-in-powershell\/\">Write a Windows Service in PowerShell<\/a><\/li>\n<\/ul>\n<h3>Instructional Videos<\/h3>\n<p>Learn about other SAPIEN Technologies product features by checking out the videos on our\u00a0<a href=\"http:\/\/youtube.com\/SAPIENTech\" target=\"_blank\" rel=\"noopener\">YouTube channel<\/a>.<\/p>\n<h3>Feedback<\/h3>\n<p>As always, if you have any ideas, comments, or feedback, please\u00a0<a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=23\" target=\"_blank\" rel=\"noopener\">visit our feedback forum<\/a>\u00a0and reference this post.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Max Trinidad is a Technology Evangelist at SAPIEN Technologies Inc., and a Microsoft PowerShell MVP. You can reach him at\u00a0<a href=\"mailto:maxt@sapien.com\">maxt@sapien.com<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest in our video series demonstrates how to to create a Windows Service to kill a Solitaire process using SAPIEN&#8217;s PrimalScript 2018. In this short video we show you how to build and install a PowerShell Windows Service, including: Create a Windows Service from a PowerShell Service Template Add the code from a custom [&hellip;]<\/p>\n","protected":false},"author":47,"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":[1143,941,410,1239,25],"tags":[816,548,437,28,37,706,997],"class_list":["post-15227","post","type-post","status-publish","format-standard","hentry","category-powershell","category-powershell-5-0","category-primalscript-software-news","category-pscore6","category-windows-powershell","tag-installer","tag-msi","tag-packager","tag-powershell","tag-primalscript","tag-script-package","tag-windows-powershell"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/15227","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\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=15227"}],"version-history":[{"count":4,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/15227\/revisions"}],"predecessor-version":[{"id":15232,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/15227\/revisions\/15232"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=15227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=15227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=15227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}