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

Module or dot sourcing? Which one when?

$
0
0
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 files. Before we dive into…

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

$
0
0
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 you…

Installing Modules with a JSON file in PowerShell ModuleManager

$
0
0
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 moving from a particular…

PrimalScript 2020 adds PowerShell 7 support

$
0
0
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 not implemented yet. Now that PowerShell…

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

$
0
0
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 $ctr; for a flag,…

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

$
0
0
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 daunting. But fear not; most…

Script Packaging Step-by-Step: Output Settings

$
0
0
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 settings We will start with the Output settings group.…

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

$
0
0
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 in Windows Explorer, or in the task bar…

Script Packaging Step-by-Step: Adding Restrictions

$
0
0
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 or under conditions that are not secure can do…

Script Packaging Step-by-Step: Embedding Credentials

$
0
0
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, biometrics, access cards, trusted connections, etc., are usually far better mechanisms for authentication.…

Script Packaging Step-by-Step: Version Information

$
0
0
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 user can right-click on a file, select Properties,…

Script Packaging Step-by-Step: Custom Build Commands

$
0
0
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 before packaging takes place. So if you need to copy dot-sourced files…

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

$
0
0
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 the problem of opening a PowerShell…

Where is the Documents Folder?

$
0
0
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 Documents folder path could be:                 C:\Users\<user>\OneDrive\Documentsor                C:\Users\<user>\Documents There are many…

Modules, Modules, Modules

$
0
0

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 part of the PowerShell infrastructure; in many ways,…

The post Modules, Modules, Modules first appeared on SAPIEN Blog.


Packaging PowerShell Scripts for ARM64

$
0
0

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 Windows RT; if you have encountered this, you likely…

The post Packaging PowerShell Scripts for ARM64 first appeared on SAPIEN Blog.

Why is my form fuzzy?

$
0
0

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 correctly, testing and debugging. And finally, you are ready! Ready…

The post Why is my form fuzzy? first appeared on SAPIEN Blog.

Gimme Gimme Color

$
0
0

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 Studio release.

You may have seen the properties…

The post Gimme Gimme Color first appeared on SAPIEN Blog.

What is new with PowerShell ModuleManager?

$
0
0

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.

PowerShell 7 Support

Updated Ribbon

Under the ribbon, you…

The post What is new with PowerShell ModuleManager? first appeared on SAPIEN Blog.

PrimalScript and Windows Terminal

$
0
0

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 console applications is a great help if you write…

The post PrimalScript and Windows Terminal first appeared on SAPIEN Blog.

Viewing all 308 articles
Browse latest View live