PowerShell – Telegram
PowerShell
821 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Mastering PowerShell Dynamic Arrays
By: Jeff Brown

PowerShell arrays are a powerful construct when working with a group of similar items. You can loop through them and access items using their index values. However, adding or removing items to a fixed array is not intuitive and, depending on the method, can cause performance issues. This article will teach you different strategies
Link
Today's cmdlet ‣ Format-Custom
Uses a customized view to format the output.

Example's Remarks:
• This command formats information about the `Start-Trannoscript` cmdlet in the format defined by the MyView view, a custom view created by the user.
• To run this command successfully, you must first create a new PS1XML file, define the MyView view, and then use the `Update-FormatData` command to add the PS1XML file to PowerShell.

#tutorial
Use PowerShell splatting and PSBoundParameters to pass parameters
By: Jeffery Hicks

The automatic variable PSBoundParameters stores the parameters that you explicitly passed to a function in a hash table. With the help of splatting, you can use this PowerShell feature to simplify passing of parameters to functions.
Link
👍1
Today's tip ‣ Hashtables: Hashtable creation

”A `Hashtable` is created via a hash literal @{} or the New-Object cmdlet. It can be created with zero or more elements. The Count property returns the current element count.”

#tip
ShowDemo
By: James Brundage

Want to showcase something you built in PowerShell? You can make a .demo.ps1 file to showcase your noscript line by line.
Link
Today's cmdlet ‣ ConvertFrom-StringData
Converts a string containing one or more key and value pairs to a hash table.

Example's Remarks:
• Because the text includes variable names, it must be enclosed in a single-quoted string so that the variables are interpreted literally and not expanded.
• Variables are not permitted in the DATA section.

#tutorial
👍1
Offend a PowerShell coder in one tweet
By: Doug Finke

A fun read 🙂
Link
Unleash the Power of Artificial Intelligence with PowerShell
By: Doug Finke

Welcome to the PowerShell Artificial Intelligence repository! Here, you will find a collection of powerful PowerShell noscripts that will enable you to easily integrate AI into your projects and take them to the next level. Imagine being able to interact directly with OpenAI's GPT AI with just a few simple commands. With this module, it's now possible.
Link
Today's cmdlet ‣ Copy-Item
Copies an item from one location to another.

Example's Remarks:
• Unlike the `Copy-Item`, the Filter parameter for `Get-ChildItem` applies to the items discovered during recursion.
• This enables you to find, filter, and then copy items recursively.

#tutorial
👍3
DomainManagement v1.8.188
By: Friedrich Weinmann

Module to manage domain configuration
Link
Today's tip ‣ Variables: Variable categories

”PowerShell defines the following categories of variables: static variables, instance variables, array elements, Hashtable key/value pairs, parameters, ordinary variables, and variables on provider drives.”
- `[Math::PI]` is a static variable
- `$date.Month` is an instance variable
- `$values[2]` is an array element
- `$h1.FirstName` is a `Hashtable` key whose corresponding value is $h1['FirstName']`
- `$p1` and `$p2` are parameters
- `$radius`, `$circumference`, `$date`, `$month`, `$values`, `$value`, and `$h1` are ordinary variables
- `$Alias:A`, `$Env:MyPath`, `${E:output.txt}`, and `$function:F` are variables on the corresponding provider drives.
- `$Variable:v` is actually an ordinary variable written with its fully qualified provider drive.

#tip
👍3
PowerShell Paging in Microsoft 365
By: Damian Scoles

Introduction You may have heard that things are better in the cloud, that they reduce your costs and time to manage. However, in order to achieve these benefits in a shared system, Microsoft has to make certain changes so that their systems are more efficient and cost effective, something they can then pass on to...
Link
Mastering the (steppable) pipeline
By: Ronald Bode

The PowerShell pipeline explained from the beginning to the end.
Link
👍2
Today's cmdlet ‣ Split-Path
Returns the specified part of a path.

Example's Remarks:
• This command changes your location to the folder that contains the PowerShell profile.

#tutorial
1
How to create a PowerShell Module with multiple Functions
By: Patrick Gruenauer

In this blog post, I will show you how to create a module with multiple functions using an example. You will see that this is not rocket science. Let's jump in.
Link
👍2
PowerShell for Developers: Doug Finke’s Story
By: The Powershell Podcast

In this episode, we are joined by the creator of the popular PowerShell module ImportExcel, Doug Finke. Doug shares the story of how he got into PowerShell, the Monad Manifesto, and the PowerShell AI module. He also dives into the details of how ImportExcel works and provides plenty of tips on how to make the most of it. Tune in to learn more about the power of PowerShell, ImportExcel, and PowerShellAI!
Link
👍2
ComputerCleanup v1.1.5
By: Tom de Leeuw

Module for freeing up disk space / removing temp files etc.
Link
BluebirdPS v0.8.3
By: Dave Carroll

A Twitter Automation Client for PowerShell 7. Tweet, retweet, send direct messages, manage lists, and more.
Link
PowerShell, Microsoft, Management, and more with Steve Lee
By: The Powershell Podcast

In this episode, we get to hear the perspective of an insider. Steve Lee shares a bit about his background and how he came to find himself managing the PowerShell team. He talks about the double-edged sword of working on a product that is so widely distributed. Steve talks about how and why PowerShell uses telemetry and some of the challenges that come along with such a large amount of data. We learn about the differences between OpenSSH and WinRM, doing visible work, interacting with the community, AI, and more.
Link
👍1