In this article, our guest blogger, Brent Challis, demonstrates how to use an incremental building block approach to PowerShell script design, allowing flexibility while keeping sight of the desired result.
Splitting code between the functional blocks and the code you…
Read More
The feature described in this article is also included in PowerShell Studio 5.8.230.
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…
Read More
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…
Read More
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…
Read More
1. Why can’t I sign scripts with my TLS/SSL certificate?
Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), use encryption to transfer data securely between clients and servers. Certificates are issued with their intended purpose coded and…
Read More
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,…
Read More
You already know that using credentials in your code is very much frowned upon. Every security expert will tell you that there are now plenty of other ways to verify access beyond user IDs and passwords, and you should always…
Read More
Malware, ransomware, and hackers from around the globe are all over the news lately. PowerShell has long been a known vector for installing malware of various types. However, singling out PowerShell is not quite fair. If you do not remember…
Read More
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…
Read More
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…
Read More