Quantcast
Channel: Windows PowerShell - SAPIEN Blog
Browsing all 308 articles
Browse latest View live

Module or dot sourcing? Which one when?

In PowerShell you have two ways of including ‘other’ code in your script. Other code can be someone else’s code, your code from another project, or simply the way you organize your code into different...

View Article


Why do I need a time stamp when signing a script?

When you set up script signing in PrimalScript or PowerShell Studio, you see a field called “Time Stamp”. It has a large list of URLs for time stamp servers to choose from. What does this do and why do...

View Article


Installing Modules with a JSON file in PowerShell ModuleManager

With the PowerShell ModuleManager 2022 release, we have added the ability to install a list of modules from a file. This feature is helpful if you need to install multiple modules at once or if you are...

View Article

PrimalScript 2020 adds PowerShell 7 support

PrimalScript 2020 (7.7.139) adds PowerShell 7 support. While we have had the ability to run scripts in a PowerShell 6 or 7 console for some time, support for new language elements, packaging, etc. was...

View Article

Runspace Contamination: What is it and how do I avoid it?

We are all creatures of habit. People who write code are even more so because we have copy-and-paste. As a result, any code you write usually reuses the same variable names. For a counter, you use...

View Article


Script Packaging Step-by-Step: Choosing a Script Engine

This first article in our SAPIEN Script Packager series walks you through the Script Engine settings. When you open the SAPIEN Script Packager for the first time, the number of options can be a bit...

View Article

Script Packaging Step-by-Step: Output Settings

In this installment of our Script Packaging series, we explore the Output Settings. Most settings on this page have a reasonable default; we will address each setting and its alternatives. Output...

View Article

Script Packaging Step-by-Step: Adding icons to your application

This article in our Script Packaging Step-by-Step series explains how to add icons to your application. Every packaged script gets a default icon assigned, which is the icon shown for that executable...

View Article


Script Packaging Step-by-Step: Adding Restrictions

In this installment of our Script Packaging series, we review the options for adding restrictions when running your packaged script. Sometimes running an application on a platform that is not supported...

View Article


Script Packaging Step-by-Step: Embedding Credentials

Our Script Packaging series continues with an introduction to the Script Packager Credentials feature. These days modern security mechanisms frequently work without passwords or user IDs. Instead,...

View Article

Script Packaging Step-by-Step: Version Information

We examine Version Information in this post as we continue our series about the SAPIEN Script Packager settings. File Properties Version Information is stored in the resources of an executable file. A...

View Article

Script Packaging Step-by-Step: Custom Build Commands

The last installment in our series about the SAPIEN Script Packager introduces the Custom Build Command settings. This process is pretty straightforward. Any specified Pre-build command is executed...

View Article

Sudo for PowerShell – or – I meant to open the shell with elevated privileges!

In this article, our guest blogger—Brent Challis—provides an example of how to emulate the Linux sudo (super user do) command in PowerShell. I am confident that I am not the only person to experience...

View Article


Where is the Documents Folder?

In this article, our guest blogger—Brent Challis—provides a different approach to retrieving the correct Documents folder. The Problem One of the problems working with multiple computers is that the...

View Article

Modules, Modules, Modules

This article provides an overview of a new feature introduced in PrimalScript 8.1.179 that allows you to add modules to the MSI file that installs your PowerShell application. Modules are a substantial...

View Article


Packaging PowerShell Scripts for ARM64

ARM processors have been part of the Microsoft Windows computer infrastructure for some time. Windows 10 officially started supporting it back in 2017. I am intentionally leaving out Windows 8 on...

View Article

Why is my form fuzzy?

So you downloaded PowerShell Studio and designed the latest and greatest PowerShell application. Much blood, sweat, and coffee went into endless hours of pushing controls pixel by pixel, sizing things...

View Article


Gimme Gimme Color

In PrimalScript 8.1.182, we added an option to the current packager engines allowing you to adjust the colors of specific output categories. This change will also be included in a future PowerShell...

View Article

What is new with PowerShell ModuleManager?

We released a new service build of PowerShell ModuleManger 2023 (v2.0.19), which includes PowerShell 7 support. This service build is included as part of the regular update cycle for our subscribers....

View Article

PrimalScript and Windows Terminal

Some time ago, Microsoft introduced Windows Terminal, which has now replaced the default console on Windows 11 (since 22H2). Having a tabbed environment and the ability to mix and match different...

View Article
Browsing all 308 articles
Browse latest View live