PrimalScript 2018 supports advanced functionality for Windows services written in PowerShell and packaged with PrimalScript 2018 or PowerShell Studio 2018. While your old code will still work unmodified with this packager engine as it detects the presence of the new functions, it is a good idea to revamp your code to use the new template. […]
Category: Scripting
SAPIEN Technologies on PowerShell Core
SAPIEN Technologies strives to bring the best products to all levels of IT administration. The announcement of PowerShell Core, which is not a finished product yet, causes a lot of confusion. It is our policy that we can’t support products that haven’t been released-to-manufacturers (RTM). But this particular product, which is Open Source, is steadily taking […]
Creating a system tray application with PowerShell
One of the great benefits of PowerShell is the ability to very quickly retrieve system information and metrics. We have added three new packager engines to PowerShell Studio and PrimalScript to make it easier to present or log that information in a standard way. I have already discussed the new Windows Application engine here: https://www.sapien.com/blog/2017/06/14/new-script-engines-for-windows-powershell/ […]
iPowerShell Now Available on Android
SAPIEN technologies, Inc. is proud to announce that we’ve officially released iPowerShell on the Play Store! In this blog post, we will outline the two biggest features available. SSH/PSWA Servers Just as in the iOS version, there is a console capable of managing your servers using SSH or PowerShell Web Access. We worked with /n Software again using […]
Enabling deep script block logging
As of the KB3000850 update and PowerShell 5.0, PowerShell has included script block logging so that admins would have more tools for the blue team side of pen testing. If you’re unfamiliar or have never heard of it before, I recommend giving this blog post a read. Not only does the post describe what script […]
Friday Puzzle Solution: Why doesn’t Verbose work?
On Friday, February 17, 2017, I posted the following puzzle on Twitter and Facebook (and here!). It shows a PowerShell function with a Write-Verbose command and asks “Why won’t this verbose string print?” You might think of this as a beginner puzzle, but after years of using PowerShell, I still hit this issue occasionally, and […]
Friday Puzzle Solution: What does Return keyword return?
On Friday, February 3, we posted a Friday Puzzle that shows a PowerShell function and a PowerShell class method that contain the same command sequence, including a statement with the Return keyword. The puzzle asks: What does the function return? What does the class method return? And, of course, we want to understand why. To […]
SAPIEN Information Center – Articles you may have missed
Have you been keeping an eye on the SAPIEN Information Center? If not, here are some articles you may have missed! Rebuild in PowerShell HelpWriter: Two ways to update help from code by June Blender, January 31, 2017 The Rebuild feature creates a new XML help file for an existing help project. You use the […]
Friday Puzzle: What does a Catch block catch?
On Friday, January 6, 2017, I posted the following puzzle on Twitter and Facebook (here, too!). It shows a Try block that encloses an expression with an intentional error and a Catch block that writes an error. But, when you run it, the error doesn’t appear as designed. The error is supposed to say ‘Cannot […]
SAPIEN Information Center – Articles you may have missed
Have you been keeping an eye on the SAPIEN Information Center? If not, here are some articles you may have missed! Working with SemanticVersion in PowerShell by June Blender, November 3, 2016 As the versions of Windows PowerShell and PowerShell (not only Windows!) proliferate, it becomes more important to know on which version of PowerShell […]