{"componentChunkName":"component---src-templates-articles-index-jsx","path":"/articles/powershell-scripts-scriptrunner/","result":{"data":{"props":{"adsense":false,"adsenseMobile":null,"byLine":"","canonical":"https://staging.business.com/articles/powershell-scripts-scriptrunner/","content":"<p>It won't take long, if you're active in the PowerShell community, to hear of the automation utility for teams that goes by the name ScriptRunner.</p>\n<p class=\"FirstParagraph\">The reason for that is because they're a leading developer in the IT administration space, and they provide tools for automating, maintaining, and managing an entire information technology environment with PowerShell. Find out how to delegate PowerShell scripts with ScriptRunner to ensure your team can leverage PowerShell scripts securely.</p>\r\n<h2>ScriptRunner for teams</h2>\r\n<p>One of the major benefits of using ScriptRunner is it enhances your ability to work as a team on projects, particularly around infrastructure automation. It's been my experience that once the team finds how useful the scripts are after they've been put in ScriptRunner, they start using the scripts and the ScriptRunner service more often.</p>\r\n<p>ScriptRunner is particularly useful when it comes to working with others in your organization, because you don't have to point people to a git repo or instruct them on how to use the script, they can point and click. This allows you to have junior administrators or even some privileged interns with the same administrative ability as some of your more senior folks, since everyone will be working off of the same code base. This allows your senior staff to work on more automation and improving the team's workflow while the junior admins and interns take care of the rest of the day to day.</p>\r\n<p>You don't just have to take my word for it, let's dive in and I can show you how ScriptRunner script delegation works.</p>\r\n<h2>Delegating Powershell scripts with ScriptRunner</h2>\r\n<p>There are a couple of prerequisites to being able to delegate scripts with ScriptRunner. We'll first assume that you have a script that you want to delegate, and we'll assume that you have already created an action based on this script.</p>\r\n<p>Although it's not strictly a prerequisite, it is a good idea to ensure that you're able to run the action you want to delegate successfully before you start delegating it to other users. Once we have those few things in place, we're ready to delegate scripts so others within our organization can take advantage of the PowerShell scripts we've written.</p>\r\n<p>In order to delegate scripts with ScriptRunner, we start by logging into the administrator page of our ScriptRunner instance. Before we get too far ahead of ourselves, we'll need to create a delegation. To do this, we'll navigate to the Delegation tab in the left-hand side.</p>\r\n<figure class=\"aligncenter small\"><picture><source srcset=\"https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/460_-852- 460w, https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/255_-472- 255w, https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/127_-235- 127w\" sizes=\"(min-width: 870px) 255px, (min-width: 400px) 100vw, 100%\"></source><img src=\"https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/300-556-\" alt=\"Creating a Delegation for Powershell\" width=\"300\" height=\"556\" data-content-img-id=\"5d07ddb79c658aa71c8b456c\"></picture></figure><h3>Creating a delegation</h3>\r\n<p>To create a delegation, click on the Create button at the bottom of the screen.</p>\r\n<figure class=\"aligncenter med\"><picture><source srcset=\"https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/742_-161- 742w, https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/412_-89- 412w, https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/206_-44- 206w\" sizes=\"(min-width: 870px) 412px, (min-width: 400px) 38vw, 62%\"></source><img src=\"https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/400-87-\" alt=\"\" width=\"400\" height=\"87\" data-content-img-id=\"5d07dde49c658a6f5a8b4567\"></picture></figure><p>Once we've clicked on the Create button, a new popup will appear, asking us for more details about the delegation. We fill this out with a unique name and assign it either active directory or claims-based authentication. For now, I've simply named my group \"Junior AD Admins\" and assigned it to an active directory group within my domain.</p>\r\n<p>On the next tab, it will ask you which actions you would like to delegate to the users or group you previously configured. In my case, I want to assign the Get-ADUser Properties action to my Junior AD Admins group, so I select that action from the next window.</p>\r\n<p><picture class=\"aligncenter med\"><source srcset=\"https://www.business.com/images/content/5d0/7de085a215e83118b456f/742_-589- 742w, https://www.business.com/images/content/5d0/7de085a215e83118b456f/412_-327- 412w, https://www.business.com/images/content/5d0/7de085a215e83118b456f/206_-163- 206w\" sizes=\"(min-width: 870px) 412px, (min-width: 400px) 38vw, 62%\"></source><img src=\"https://www.business.com/images/content/5d0/7de085a215e83118b456f/560-445-\" alt=\"\" width=\"560\" height=\"445\" data-content-img-id=\"5d07de085a215e83118b456f\"></picture></p>\r\n<p>Of course, I'm only assigning one delegated action to these users, but if you wanted to do more than one script, you can always assign this by holding the Control key while clicking on the additional actions. This is particularly useful if I have multiple scripts I wanted these users to run; I'd be able to delegate them all in one fell swoop rather than delegating them individually.</p>\r\n<p>That's all there is to delegating scripts with ScriptRunner! Now, when the user logs in, they will see the delegated action under the Actions tab under their login. They'll be able to run this script just as they would if they had created the script and the action under their own account.</p>\r\n<h2>Conclusion</h2>\r\n<p>As you have seen, ScriptRunner has not only enhanced the ability for a team to work together with their PowerShell projects, but they've made the management and delegation of scripts easy.</p>\r\n<p>It doesn't take much imagination to see how you're able to apply this in your own environment, whether you're automating the retrieval of common AD fields your team uses or even deploying new infrastructure in Azure on a whim.</p>\n","docType":"article","guid":"articles_39b09a79bff36936bff3caf54d1b1ffd","lastModified":"2019-06-19T12:46:00.000Z","published":"2019-06-19T12:46:00.000Z","structuredData":null,"subtitle":"Ensure your team can leverage PowerShell scripts securely.","template":"v1","title":"Delegating PowerShell Scripts with ScriptRunner","type":"article","author":{"avatar":null,"bio":"Adam Bertram is a 20-year veteran of IT and experienced online business professional. He's an entrepreneur, IT influencer, Microsoft MVP, blogger, trainer and content marketing writer for multiple technology companies. Adam is also the founder of the popular IT career development platform TechSnips. Catch up on Adam's articles at adamtheautomator.com, connect on LinkedIn, or follow him on Twitter at @adbertram or the TechSnips Twitter account at @techsnips_io.","name":"Adam Bertram","image":null,"slug":null,"social":{"facebook":"","linkedin":"https://www.linkedin.com/in/adambertram/","twitter":"https://twitter.com/adbertram","website":"https://www.adamtheautomator.com/"},"status":"enabled","title":null,"type":"Contributing Writer","user":{"imagePath":"https://staging.business.com/images/undefined","profile":{"company":"eGain Communications","jobTitle":"Product Management Analyst","website":""}}},"breadcrumbs":null,"channels":{"primary":{"name":"Technology","slug":"technology"},"sub":{"name":"Technology Solutions","slug":"technology-solutions"}},"meta":{"robots":"index, follow","description":"Leverage Powershell scripts more securely with ScriptRunner","title":"How to Delegate PowerShell Scripts with ScriptRunner - business.com"},"parsedContent":{"toc":[{"id":"scriptrunner-for-teams","title":"ScriptRunner for teams"},{"id":"delegating-powershell-scripts-with-scriptrunner","title":"Delegating Powershell scripts with ScriptRunner"},{"id":"conclusion","title":"Conclusion"}],"json":[{"component":"p","children":["It won't take long, if you're active in the PowerShell community, to hear of the automation utility for teams that goes by the name ScriptRunner."]},{"component":"p","props":{"className":"FirstParagraph"},"children":["The reason for that is because they're a leading developer in the IT administration space, and they provide tools for automating, maintaining, and managing an entire information technology environment with PowerShell. Find out how to delegate PowerShell scripts with ScriptRunner to ensure your team can leverage PowerShell scripts securely."]},{"component":"h2","props":{"id":"scriptrunner-for-teams"},"children":["ScriptRunner for teams"]},{"component":"p","children":["One of the major benefits of using ScriptRunner is it enhances your ability to work as a team on projects, particularly around infrastructure automation. It's been my experience that once the team finds how useful the scripts are after they've been put in ScriptRunner, they start using the scripts and the ScriptRunner service more often."]},{"component":"p","children":["ScriptRunner is particularly useful when it comes to working with others in your organization, because you don't have to point people to a git repo or instruct them on how to use the script, they can point and click. This allows you to have junior administrators or even some privileged interns with the same administrative ability as some of your more senior folks, since everyone will be working off of the same code base. This allows your senior staff to work on more automation and improving the team's workflow while the junior admins and interns take care of the rest of the day to day."]},{"component":"p","children":["You don't just have to take my word for it, let's dive in and I can show you how ScriptRunner script delegation works."]},{"component":"h2","props":{"id":"delegating-powershell-scripts-with-scriptrunner"},"children":["Delegating Powershell scripts with ScriptRunner"]},{"component":"p","children":["There are a couple of prerequisites to being able to delegate scripts with ScriptRunner. We'll first assume that you have a script that you want to delegate, and we'll assume that you have already created an action based on this script."]},{"component":"p","children":["Although it's not strictly a prerequisite, it is a good idea to ensure that you're able to run the action you want to delegate successfully before you start delegating it to other users. Once we have those few things in place, we're ready to delegate scripts so others within our organization can take advantage of the PowerShell scripts we've written."]},{"component":"p","children":["In order to delegate scripts with ScriptRunner, we start by logging into the administrator page of our ScriptRunner instance. Before we get too far ahead of ourselves, we'll need to create a delegation. To do this, we'll navigate to the Delegation tab in the left-hand side."]},{"component":"figure","props":{"className":"aligncenter small"},"children":[{"component":"picture","children":[{"component":"source","props":{"srcSet":"https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/460_-852- 460w, https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/255_-472- 255w, https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/127_-235- 127w","sizes":"(min-width: 870px) 255px, (min-width: 400px) 100vw, 100%"}},{"component":"img","props":{"src":"https://www.business.com/images/content/5d0/7ddb79c658aa71c8b456c/300-556-","alt":"Creating a Delegation for Powershell","width":"300","height":"556","data-content-img-id":"5d07ddb79c658aa71c8b456c"}}]}]},{"component":"h3","children":["Creating a delegation"]},{"component":"p","children":["To create a delegation, click on the Create button at the bottom of the screen."]},{"component":"figure","props":{"className":"aligncenter med"},"children":[{"component":"picture","children":[{"component":"source","props":{"srcSet":"https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/742_-161- 742w, https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/412_-89- 412w, https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/206_-44- 206w","sizes":"(min-width: 870px) 412px, (min-width: 400px) 38vw, 62%"}},{"component":"img","props":{"src":"https://www.business.com/images/content/5d0/7dde49c658a6f5a8b4567/400-87-","alt":"","width":"400","height":"87","data-content-img-id":"5d07dde49c658a6f5a8b4567"}}]}]},{"component":"p","children":["Once we've clicked on the Create button, a new popup will appear, asking us for more details about the delegation. We fill this out with a unique name and assign it either active directory or claims-based authentication. For now, I've simply named my group \"Junior AD Admins\" and assigned it to an active directory group within my domain."]},{"component":"p","children":["On the next tab, it will ask you which actions you would like to delegate to the users or group you previously configured. In my case, I want to assign the Get-ADUser Properties action to my Junior AD Admins group, so I select that action from the next window."]},{"component":"p","children":[{"component":"picture","props":{"className":"aligncenter med"},"children":[{"component":"source","props":{"srcSet":"https://www.business.com/images/content/5d0/7de085a215e83118b456f/742_-589- 742w, https://www.business.com/images/content/5d0/7de085a215e83118b456f/412_-327- 412w, https://www.business.com/images/content/5d0/7de085a215e83118b456f/206_-163- 206w","sizes":"(min-width: 870px) 412px, (min-width: 400px) 38vw, 62%"}},{"component":"img","props":{"src":"https://www.business.com/images/content/5d0/7de085a215e83118b456f/560-445-","alt":"","width":"560","height":"445","data-content-img-id":"5d07de085a215e83118b456f"}}]}]},{"component":"p","children":["Of course, I'm only assigning one delegated action to these users, but if you wanted to do more than one script, you can always assign this by holding the Control key while clicking on the additional actions. This is particularly useful if I have multiple scripts I wanted these users to run; I'd be able to delegate them all in one fell swoop rather than delegating them individually."]},{"component":"p","children":["That's all there is to delegating scripts with ScriptRunner! Now, when the user logs in, they will see the delegated action under the Actions tab under their login. They'll be able to run this script just as they would if they had created the script and the action under their own account."]},{"component":"h2","props":{"id":"conclusion"},"children":["Conclusion"]},{"component":"p","children":["As you have seen, ScriptRunner has not only enhanced the ability for a team to work together with their PowerShell projects, but they've made the management and delegation of scripts easy."]},{"component":"p","children":["It doesn't take much imagination to see how you're able to apply this in your own environment, whether you're automating the retrieval of common AD fields your team uses or even deploying new infrastructure in Azure on a whim."]}]},"resource":null,"sponsorship":null,"thumbnail":{"path":"https://staging.business.com/images/content/5d0/7d9da5a215e820b8b4573/1500-0-","caption":"Thongchai Kitiyanantawong/Shutterstock","isBlurred":false},"bestPicks":null},"related":{"relatedArticles":[{"title":"PowerShell: Everything You Need to Know","canonical":"https://www.business.com/articles/powershell-everything-you-need-to-know/","slug":"powershell-everything-you-need-to-know","thumbnail":"https://www.business.com/images/content/5b8/998581039eb8f738b457b/1500-0-","dek":"What you need to know to unlock Microsoft PowerShell's full capabilities.","lastModified":"2018-09-05T17:00:00Z","published":"2018-09-05T17:00:00Z","sponsored":false},{"title":"Why Voice-Based Technology is the Future of Excellent Customer Experience","canonical":"https://www.business.com/articles/voice-technology-will-change-the-customer-experience/","slug":"voice-technology-will-change-the-customer-experience","thumbnail":"https://www.business.com/images/content/5df/660047b4374e73c8b4567/1500-0-","dek":"Why voice technology will shift customer experience expectations, and how to embrace the sea change.","lastModified":"2019-12-16T14:30:00Z","published":"2019-12-16T14:30:00Z","sponsored":false},{"title":"The Benefits of Technology for the Small Business Sector","canonical":"https://www.business.com/articles/how-technology-benefits-small-business/","slug":"how-technology-benefits-small-business","thumbnail":"https://www.business.com/images/content/5dc/c2fa15a215e32498b456a/1500-0-","dek":"The role of technology in business caused a tremendous growth in trade and commerce. Business concepts and models were revolutionized as a result of the introduction of technology. This is because technology gave a new and better approach on how to go about with business.","lastModified":"2019-11-15T17:00:00Z","published":"2019-11-15T17:00:00Z","sponsored":false},{"title":"Should You Hire a Software Development Company for Your Project?","canonical":"https://www.business.com/articles/how-to-hire-a-software-developer/","slug":"how-to-hire-a-software-developer","thumbnail":"https://www.business.com/images/content/5dd/572ed5a215e81188b4570/1500-0-","dek":"In this era of technology, the demand for software development firms is on a constant rise. Choosing the best software development company is really a daunting task. This post helps you to know why you should a software development firm for your project","lastModified":"2019-11-21T23:00:00Z","published":"2019-11-21T23:00:00Z","sponsored":false},{"title":"Want to Prevent Creative Stagnation? Look to Agile Collaboration","canonical":"https://www.business.com/articles/how-agile-collaboration-improves-creativity/","slug":"how-agile-collaboration-improves-creativity","thumbnail":"https://www.business.com/images/content/5e6/00b3d7b4374d0058b456a/1500-0-","dek":"Collecting data and actually using that data to inform your decision-making aren’t one and the same. If you apply these strategies, you can diversify the agile process to boost the velocity and impact of your testing — and create successful, disruptive products and services along the way.","lastModified":"2020-03-04T23:12:00Z","published":"2020-03-04T23:12:00Z","sponsored":false},{"title":"How Small Businesses Can Compete By Leveraging Data Insights","canonical":"https://www.business.com/articles/data-insight-for-small-business/","slug":"data-insight-for-small-business","thumbnail":"https://www.business.com/images/content/5dd/569177b4374ee0e8b4571/1500-0-","dek":"Many organizations still struggle to extract insight from their data. As a smaller business, you have a big advantage, but you must be careful to know exactly what type of insight will help your business to grow.","lastModified":"2019-11-21T19:00:00Z","published":"2019-11-21T19:00:00Z","sponsored":false},{"title":"App Development Solutions That Won't Break the Bank","canonical":"https://www.business.com/articles/inexpensive-app-development-solutions/","slug":"inexpensive-app-development-solutions","thumbnail":"https://www.business.com/images/content/5e9/75dea5a215ef9458b4575/1500-0-","dek":"Learn more about what your business needs to tackle app development.","lastModified":"2020-04-15T22:18:00Z","published":"2020-04-15T22:18:00Z","sponsored":false},{"title":"8 Important Cybersecurity Measures for Small Businesses","canonical":"https://www.business.com/articles/cybersecurity-measures-for-small-businesses/","slug":"cybersecurity-measures-for-small-businesses","thumbnail":"https://www.business.com/images/content/5dc/867c77b43740d048b4567/1500-0-","dek":"Data theft is still a major headache though massive strides are being made to curb this menace. Security starts with you.","lastModified":"2019-11-11T14:00:00Z","published":"2019-11-11T14:00:00Z","sponsored":false},{"title":"5 Steps To Speed Up A WordPress Website","canonical":"https://www.business.com/articles/how-to-speed-up-wordpress-website/","slug":"how-to-speed-up-wordpress-website","thumbnail":"https://www.business.com/images/content/5e6/8e4b29c658a8e608b456d/1500-0-","dek":"In 2020 site speed has become more important than ever to increase your visibility online (SEO) and maximise conversion rate once they come to your website. I'll explain how I maximised the speed of my site and how to measure this critical metric.","lastModified":"2020-03-11T16:18:00Z","published":"2020-03-11T16:18:00Z","sponsored":false},{"title":"Essential PowerShell Cmdlets For Managing Active Directory","canonical":"https://www.business.com/articles/powershell-active-directory-cmdlets/","slug":"powershell-active-directory-cmdlets","thumbnail":"https://www.business.com/images/content/5cf/90cab7b4374ab068b456f/1500-0-","dek":"Administering Active Directory is one of the most critical roles in any Windows network.","lastModified":"2018-09-04T08:00:00Z","published":"2018-09-04T08:00:00Z","sponsored":false},{"title":"Beyond Data Loss Protection","canonical":"https://www.business.com/articles/crashplan-small-business-data-loss-protection/","slug":"crashplan-small-business-data-loss-protection","thumbnail":"https://www.business.com/images/content/5ed/546dd5a215ee46c8b4569/1500-0-","dek":"Data loss can devastate a small business. Make sure you're protected from this common threat.","lastModified":"2019-11-22T23:00:00Z","published":"2019-11-22T23:00:00Z","sponsored":true},{"title":"Essential PowerShell Cmdlets For Auditing And Maintaining Storage","canonical":"https://www.business.com/articles/powershell-for-storage/","slug":"powershell-for-storage","thumbnail":"https://www.business.com/images/content/5d0/18e065a215ea2498b4588/1500-0-","dek":"PowerShell v5 offers some new features for managing storage.","lastModified":"2018-09-04T11:00:00Z","published":"2018-09-04T11:00:00Z","sponsored":false}],"relatedReviews":[{"doc_type":"category","thumbnail":"https://staging.business.com/images/rz/5df908cc5a215e8c4a8b4568/conferencecall_Antonio_Diaz_Getty.jpg","canonical":"https://staging.business.com/categories/best-conference-call-services/","title":"The Best Conference Call Services of 2021","dek":"Which conference call service is right for your business in 2021? We review the top-rated services.","slug":"best-conference-call-services","lastModified":"2021-03-17T18:17:00Z"},{"doc_type":"category","thumbnail":"https://staging.business.com/images/rz/5df3d8695a215e58428b4570/POS_GETTY_DERO2084.jpg","canonical":"https://staging.business.com/categories/best-pos-systems/","title":"The Best POS Systems of 2021","dek":"Before you choose a POS system, check out our reviews of the best picks for 2021. ","slug":"best-pos-systems","lastModified":"2021-03-17T17:33:00Z"},{"doc_type":"category","thumbnail":"https://staging.business.com/images/rz/5e00d4787b43745d6a8b456e/Laptop_undrey_getty.jpg","canonical":"https://staging.business.com/categories/employee-monitoring-software/","title":"The Best Employee Monitoring Software of 2021","dek":"We've narrowed down the best employee monitoring software for businesses. Check out our best picks and reviews.","slug":"employee-monitoring-software","lastModified":"2021-03-05T15:40:00Z"}],"relatedSponsoredArticles":null}},"pageContext":{"displayModified":"2019-06-19T12:46:00.000Z","template":"v1","title":"Delegating PowerShell Scripts with ScriptRunner","meta":{"robots":"index, follow"},"docType":"articles","slug":"powershell-scripts-scriptrunner","canonical":"https://staging.business.com/articles/powershell-scripts-scriptrunner/","skipTOC":false}},"staticQueryHashes":[]}