General Question

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Reddrgn2
Posts: 17
Joined: Wed May 23, 2018 6:13 am

General Question

Post by Reddrgn2 » Fri Sep 13, 2019 12:50 pm

Hi, Probably not the best place to ask this question. I am wondering what people are doing for a catalog or library of powershell scripts and tools. I have created a few tools and a lot of scripts, covering AD, O365, SharePoint, etc. I have a main powershell ISE ps1 file script that I open normally, it has the most common scripts I use. Well the issue with that is I tend to do little notes about what it does and if its export or display. So 1 script is kind of two lines, 1 with description and 1 with actual script. So 30 scripts are really 60 lines in ISE. Then I started to wonder what other people are doing for type of thing. The screen shot below is kind of what I mean by catalog or library, from IDERA
Attachments
PS LIB.png
PS LIB.png (36.72 KiB) Viewed 878 times

User avatar
Reddrgn2
Posts: 17
Joined: Wed May 23, 2018 6:13 am

Re: General Question

Post by Reddrgn2 » Sat Sep 14, 2019 12:44 pm

So googling around and browsing forms all over I can't seem to find the option for what I am looking for in PowerShell Studio.

Out of random thought I downloaded PrimalScript and found kind of what I was looking for. See screen shot.

People who use Studio can you let me know if there is an option like found in Primal in Studio.
Attachments
primal.png
primal.png (65.28 KiB) Viewed 813 times

User avatar
brittneyr
Site Admin
Posts: 187
Joined: Thu Jun 01, 2017 7:20 am

Re: General Question

Post by brittneyr » Mon Sep 16, 2019 7:20 am

At the moment there is no File Browser Panel available in PowerShell Studio. You are welcome to make a feature request here:
https://www.sapien.com/requests
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 7049
Joined: Tue May 29, 2007 4:43 pm

Re: General Question

Post by Alexander Riedel » Mon Sep 16, 2019 9:02 am

From what I see in the original picture you are more looking for what is generally referred to as snippets. Both PrimalScript and PowerShellStudio have a snippets browser that shows a number of pre-fabricated snippets and can be customized to show your own alongside.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 187
Joined: Thu Jun 01, 2017 7:20 am

Re: General Question

Post by brittneyr » Mon Sep 16, 2019 2:12 pm

We have received your feature request.

Also, the snippet panel in PowerShell Studio can be found here:
SPS_SnippetsPanel.png
SPS_SnippetsPanel.png (160.68 KiB) Viewed 719 times
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
Reddrgn2
Posts: 17
Joined: Wed May 23, 2018 6:13 am

Re: General Question

Post by Reddrgn2 » Wed Sep 18, 2019 8:19 am

I did see that and I was able to view the folders but because the ps1's are not in snippet format it does not allow me to see the already configured scripts. I could convert all the pre-made scripts but that is really not what I am looking to do or have done. With the file browser option (excatly what I was looking for) I can keep the pre-made scripts for AD ( like getting all the basic user info by looking up users display name or setting proxy address) in the same folder. Look at that folder, right click to open and view the script or right click and run it then enter the required parameters. Or I can then move to another folder and run scripts for Azure. Snippet are nice if you just want blank codes you just need to adjust for that script/form. Just little surprised that file browser is not already listed there. I know it was just brought back to Primal script.