Kolejny tydzień i kolejne podsumowanie tego, co dzieje się w świecie PowerShell.
📰 Wpisy i artykuły
Formatting PowerShell TimeSpans – [Jeffery Hicks]
I often will figure out how to do something and later struggle to remember how to do it a months later. Rather than trying to remember what piece of code I wrote, why not write about. Assuming I can remember! Anyway, here’s today’s “PSRemembery”. I often use code like this, and I expect many of…
Native Commands in PowerShell – A New Approach – [Jim Truher]
In this two part blog post I’m going to investigate how PowerShell can take better advantage of native executables. In the first post, I’m going to discuss a few of the ways that PowerShell can better incorporate native executables into our object oriented world and how we can use these tools to better fit into our model of more discrete operations.
Native Commands in PowerShell – A New Approach – Part 2 – [Jim Truher]
In my last post I went through some some strategies for executing native executable and having them participate more fully in the PowerShell environment. In this post, I’ll be going through a couple of experiments I’ve done with the kubernetes kubectl utility.
PowerShell Security Best Practices – [Isidoros Monogioudis]
Threat actors have long since used legitimate tools to infiltrate and laterally move across defender’s networks. The reasons for this are clear; the likelihood of being detected is much lower when authorized tools are leveraged instead of malicious tools that might trigger prevention or detection controls. PowerShell attributes have also made it attractive to adversaries, such as being used in the Petya/NotPetya campaign.
While it is good practice to explicitly load the modules you want using
Import-Module, since Powershell 3.0 if a module is available at one of the locations returned by
$env:PSModulePath, it will automatically get loaded by default if one of its cmdlets are invoked.
5 Tips On Getting Started with AWS and PowerShell – [Adam Bertram]
AWS has many Software Deployment Toolkits (SDK) available for anyone to use and that means the ability to automate the entire cloud platform with PowerShell. AWS PowerShell is a way for developers and administrators to take tasks that were once manual, and turn them into code. AWS PowerShell is also cross-platform, which means it can run on Windows, MacOS, and Linux, ensuring that any environment that you are in, AWS PowerShell is ready to automate.
⚙️ Skrypty, moduły PowerShell
Use GitHub Super Linter in Azure Pipelines – [Tao Yang]
PS1 to Service: A tool to convert your PS1 to Windows Service on local or other devices – [Damien Van Robaeys]
In this post I will show you a tool I created that allows you to create your own Windows Service to run a PowerShell script and specify the delay to run it. You will be also able to generate scripts and content to create windows service on other devices.
PowerShell Scripting to C# Development