Introduction to C# and C# Classes The purpose of this blog post is to bridge the learning and concept gap between PowerShell and C# classses, to jump start you from…
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…
PowerShell keeps the history of executed commands. PowerShell itself keeps them in memory. In addition to this, the PSReadline module saves them in a file on the hard drive. that allows us to go back to command entered not only…
ForEach-Object is used for performing specified actions on every element of an array. This array can be specified as a value of the -InputObject parameter, but in the majority of cases it is received from the pipeline. We can use…
If you do a lot with Azure and PowerShell you may noticed that the latest module is important. as functions may not be there or properties are not listed correctly. There are plenty of scripts around on how to update these modules. With the Get-InstalledModule you will get a list of the modules on your […]
Continue Reading
We are thrilled to announce the Windows Package Manager preview! If you’re already familiar with what a package manager is, feel free to skip this paragraph. If you’re still reading, you’re going to love this! A package manager is designed to help you save time and frustration.
Microsoft.PowerShell.Commands.PSPropertyExpression type (it’s type accelerator – [pspropertyexpression]) exists in PowerShell from the beginning, but in version 6.1 it was made public, what makes it accessible to us, as a script and module authors. This type is used, for example, by…
It is time for a new PowerShell scripting challenge. Today’s challenge is targeted at beginner and intermediate skill levels, although everyone is welcome to try their hand. To get the […]
Few days ago I was surfing on Twitter when dbatools asked about how it’s PowerShell module changed the way people work. We’re looking to highlight how dbatools has changed the way people work. What was your most exciting moment using dbatools or how did dbatools save you at work? 🤩 — dbatools (@psdbatools) May 16, […]
In this first part of a multi-series blog, I will explain why and how we should use Azure Functions and PowerShell together. Next, I will show you how to deploy a PowerShell based Function.
Last year at Build 2019, we first announced the Windows Terminal. Since then, we have been working with the community to create a wonderful terminal experience while still being a preview product. Here we are at Build 2020 and we are so excited to share with you our latest announcements!
Any PowerShell script can be transformed to a real Windows service that runs in the background and starts automatically during your server boot. You can create a Windows service using srvany.exe or instsrv.exe tools (from Windows Server Resource 2003 Kit) which allow you to run the powershell.exe process with a parameter that contains the path to your PS1 script file.
Dokumentacja
Losowo wybrana dokumentacja, którą przejrzałem w tym tygodniu.